<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>예금이자계산기 &#8211; Inside korea</title>
	<atom:link href="https://infomimi.com/tag/%EC%98%88%EA%B8%88%EC%9D%B4%EC%9E%90%EA%B3%84%EC%82%B0%EA%B8%B0/feed/" rel="self" type="application/rss+xml" />
	<link>https://infomimi.com</link>
	<description>Inside korea</description>
	<lastBuildDate>Mon, 14 Sep 2026 13:04:06 +0000</lastBuildDate>
	<language>ko-KR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://infomimi.com/wp-content/uploads/2026/07/cropped-제목을-입력해주세요_-001-150x150.png</url>
	<title>예금이자계산기 &#8211; Inside korea</title>
	<link>https://infomimi.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">256378395</site>	<item>
		<title>대출이자계산기 예금, 적금 종합이자계산기</title>
		<link>https://infomimi.com/%eb%8c%80%ec%b6%9c%ec%9d%b4%ec%9e%90%ea%b3%84%ec%82%b0%ea%b8%b0-%ec%98%88%ea%b8%88-%ec%a0%81%ea%b8%88-%ec%9d%b4%ec%9e%90%ea%b3%84%ec%82%b0%ea%b8%b0/</link>
		
		<dc:creator><![CDATA[MIMI]]></dc:creator>
		<pubDate>Thu, 30 Oct 2025 05:32:47 +0000</pubDate>
				<category><![CDATA[생활정보]]></category>
		<category><![CDATA[대출이자계산기]]></category>
		<category><![CDATA[예금이자계산기]]></category>
		<category><![CDATA[적금이자계산기]]></category>
		<guid isPermaLink="false">https://infomimi.com/?p=259</guid>

					<description><![CDATA[종합 이자 계산기 (상세 옵션) 대출이자계산기(종합 이자계산기) 입금 형태 예금 적금 대출 예금 금액 (원) 원 예치 기간 (개월) 개월 연 이자율 (%) % 이자 방식 단리 월복리 이자 과세 일반과세 (15.4%)비과세 (0%)세금우대 (9.5%) 대출 금액 (원) 원 대출 기간 (개월) 개월 연 이자율 (%) % 상환 방법 원리금 균등 상환원금 균등 상환원금 만기 일시 ... <a title="대출이자계산기 예금, 적금 종합이자계산기" class="read-more" href="https://infomimi.com/%eb%8c%80%ec%b6%9c%ec%9d%b4%ec%9e%90%ea%b3%84%ec%82%b0%ea%b8%b0-%ec%98%88%ea%b8%88-%ec%a0%81%ea%b8%88-%ec%9d%b4%ec%9e%90%ea%b3%84%ec%82%b0%ea%b8%b0/" aria-label="대출이자계산기 예금, 적금 종합이자계산기에 대해 더 자세히 알아보세요">더 읽기</a>]]></description>
										<content:encoded><![CDATA[
<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>종합 이자 계산기 (상세 옵션)</title>
    <!-- Tailwind CSS CDN --><script src="https://cdn.tailwindcss.com"></script>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;700&display=swap');
        body {
            font-family: 'Noto Sans KR', sans-serif;
            background-color: #f3f4f6;
        }
        .blog-card {
            max-width: 800px;
            margin: 2rem auto;
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            overflow: hidden;
            padding: 2rem;
        }
        .result-box {
            min-height: 100px;
        }
        .input-group label {
            font-weight: 500;
        }
        input[type="number"]::-webkit-inner-spin-button, 
        input[type="number"]::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        .radio-group label {
            margin-right: 1rem;
            cursor: pointer;
        }
    </style>
</head>
<body class="p-4">

    <div class="blog-card">
        
<div>
<script src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6801682456085568"></script>
<!-- 디스플레이 상단 --> <ins class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-6801682456085568" data-ad-slot="9900198837" data-ad-format="auto" data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>

        <h2 class="text-xl font-semibold mb-6 border-b pb-2 text-gray-800">대출이자계산기(종합 이자계산기)</h2>
        
        <!-- Calculator Type Selector (Radio Buttons) --><div class="mb-8 p-4 bg-gray-50 rounded-lg border border-gray-200">
            <p class="block mb-3 text-base text-gray-800 font-semibold">입금 형태</p>
            <div class="flex flex-wrap gap-4 radio-group">
                <label>
                    <input type="radio" name="calcType" value="deposit" checked class="mr-2"> 예금
                </label>
                <label>
                    <input type="radio" name="calcType" value="savings" class="mr-2"> 적금
                </label>
                <label>
                    <input type="radio" name="calcType" value="loan" class="mr-2"> 대출
                </label>
            </div>
        </div>

        <!-- Input Form --><form id="interestForm" class="grid grid-cols-1 md:grid-cols-2 gap-6">
            
            <!-- Deposit/Savings Common Inputs --><div id="depositSavingsInputs" class="contents">
                <div class="input-group md:col-span-2">
                    <label for="principal" class="block mb-2 text-sm text-gray-700" id="principalLabel">예금 금액 (원)</label>
                    <div class="relative">
                        <input type="number" id="principal" min="10000" placeholder="예: 10,000,000" required class="w-full p-3 border border-gray-300 rounded-lg pr-12 focus:ring-blue-500 focus:border-blue-500 transition duration-150">
                        <span class="absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 font-semibold">원</span>
                    </div>
                </div>

                <div class="input-group">
                    <label for="term" class="block mb-2 text-sm text-gray-700" id="termLabel">예치 기간 (개월)</label>
                    <div class="relative">
                        <input type="number" id="term" min="1" max="600" placeholder="예: 12" required class="w-full p-3 border border-gray-300 rounded-lg pr-12 focus:ring-blue-500 focus:border-blue-500 transition duration-150">
                        <span class="absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 font-semibold">개월</span>
                    </div>
                </div>

                <div class="input-group">
                    <label for="rate" class="block mb-2 text-sm text-gray-700">연 이자율 (%)</label>
                    <div class="relative">
                        <input type="number" id="rate" min="0.1" max="100" step="0.01" placeholder="예: 3.8" required class="w-full p-3 border border-gray-300 rounded-lg pr-12 focus:ring-blue-500 focus:border-blue-500 transition duration-150">
                        <span class="absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 font-semibold">%</span>
                    </div>
                </div>

                <div class="input-group md:col-span-2">
                    <p class="block mb-2 text-sm text-gray-700">이자 방식</p>
                    <div class="flex flex-wrap gap-4 radio-group">
                        <label>
                            <input type="radio" name="interestType" value="simple" checked class="mr-2"> 단리
                        </label>
                        <label>
                            <input type="radio" name="interestType" value="compound" class="mr-2"> 월복리
                        </label>
                    </div>
                </div>

                <div class="input-group md:col-span-2">
                    <label for="taxType" class="block mb-2 text-sm text-gray-700">이자 과세</label>
                    <select id="taxType" class="w-full p-3 border border-gray-300 rounded-lg focus:ring-blue-500 focus:border-blue-500 transition duration-150">
                        <option value="general">일반과세 (15.4%)</option>
                        <option value="taxFree">비과세 (0%)</option>
                        <option value="preferential">세금우대 (9.5%)</option>
                    </select>
                </div>
            </div>

            <!-- Loan Specific Inputs --><div id="loanInputs" class="contents hidden">
                <div class="input-group md:col-span-2">
                    <label for="loan-principal" class="block mb-2 text-sm text-gray-700">대출 금액 (원)</label>
                    <div class="relative">
                        <input type="number" id="loan-principal" min="10000" placeholder="예: 50,000,000" class="w-full p-3 border border-gray-300 rounded-lg pr-12 focus:ring-blue-500 focus:border-blue-500 transition duration-150">
                        <span class="absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 font-semibold">원</span>
                    </div>
                </div>

                <div class="input-group">
                    <label for="loan-term" class="block mb-2 text-sm text-gray-700">대출 기간 (개월)</label>
                    <div class="relative">
                        <input type="number" id="loan-term" min="1" max="600" placeholder="예: 360" class="w-full p-3 border border-gray-300 rounded-lg pr-12 focus:ring-blue-500 focus:border-blue-500 transition duration-150">
                        <span class="absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 font-semibold">개월</span>
                    </div>
                </div>

                <div class="input-group">
                    <label for="loan-rate" class="block mb-2 text-sm text-gray-700">연 이자율 (%)</label>
                    <div class="relative">
                        <input type="number" id="loan-rate" min="0.1" max="100" step="0.01" placeholder="예: 4.5" class="w-full p-3 border border-gray-300 rounded-lg pr-12 focus:ring-blue-500 focus:border-blue-500 transition duration-150">
                        <span class="absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 font-semibold">%</span>
                    </div>
                </div>

                <div class="input-group md:col-span-2">
                    <label for="loan-repayment-method" class="block mb-2 text-sm text-gray-700">상환 방법</label>
                    <select id="loan-repayment-method" class="w-full p-3 border border-gray-300 rounded-lg focus:ring-blue-500 focus:border-blue-500 transition duration-150">
                        <option value="equalPrincipalInterest">원리금 균등 상환</option>
                        <option value="equalPrincipal">원금 균등 상환</option>
                        <option value="maturityLumpSum">원금 만기 일시 상환</option>
                    </select>
                </div>
            </div>
        </form>
            
        <!-- Action Buttons --><div class="flex gap-4 mt-8">
            <button id="resetBtn" class="flex-1 py-3 bg-gray-200 text-gray-700 font-bold rounded-lg hover:bg-gray-300 transition duration-200 shadow-md">
                초기화
            </button>
            <button id="calculateBtn" class="flex-1 py-3 bg-green-500 text-white font-bold rounded-lg hover:bg-green-600 transition duration-200 shadow-md">
                계산하기
            </button>
        </div>

        <!-- Results Display --><div class="mt-8 p-6 bg-blue-50 rounded-lg border-2 border-blue-200 result-box">
            <h3 class="text-lg font-bold text-blue-700 mb-3" id="resultTitle"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4b0.png" alt="💰" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 예상 결과</h3>
            <div id="result-content">
                <p id="result-message" class="text-gray-600 mb-4 text-sm">항목을 입력 후 &#8216;계산하기&#8217; 버튼을 눌러주세요.</p>
                <div id="result-amount" class="text-4xl font-extrabold text-blue-600 break-words">
                    0 원
                </div>
                <div id="detailed-results" class="mt-4 text-sm text-gray-700 space-y-2">
                    <!-- Detailed results will be injected here --></div>
            </div>
        </div>
        
<div>
<script src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6801682456085568"></script>
<!-- 디스플레이 상단 --> <ins class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-6801682456085568" data-ad-slot="9900198837" data-ad-format="auto" data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>

        <!-- Calculation Guide / Explanation --><div class="pt-6 border-t border-gray-200 text-sm text-gray-600">
            <h4 class="font-semibold text-gray-800 mb-2"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4a1.png" alt="💡" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 계산 참고 사항</h4>
            <ul class="list-disc pl-5 space-y-2">
                <li>모든 이자 계산은 **세전** 기준으로 먼저 계산된 후, 선택한 과세 유형에 따라 세금을 적용합니다.</li>
                <li>**월복리:** 매월 이자가 원금에 가산되어 다음 달 이자를 계산하는 방식입니다.</li>
                <li>**대출:**
                    <ul class="list-circle pl-5 mt-1 space-y-1">
                        <li>**원리금 균등:** 매월 원금과 이자를 합한 금액이 동일합니다.</li>
                        <li>**원금 균등:** 매월 상환하는 원금은 동일하고, 이자는 줄어들어 총 상환액이 점차 감소합니다.</li>
                        <li>**원금 만기 일시:** 대출 기간 동안 이자만 납부하고, 만기에 원금을 한꺼번에 상환합니다.</li>
                    </ul>
                </li>
                <li>이 계산 결과는 예상 금액이며, 실제 금융 상품의 약관(중도 상환 수수료, 수수료, 우대 금리 등)에 따라 차이가 있을 수 있습니다.</li>
            </ul>
        </div>

    </div>

    <script>
        const calcTypeRadios = document.querySelectorAll('input[name="calcType"]');
        const calculateBtn = document.getElementById('calculateBtn');
        const resetBtn = document.getElementById('resetBtn');
        const resultTitle = document.getElementById('resultTitle');
        const resultMessage = document.getElementById('result-message');
        const resultAmount = document.getElementById('result-amount');
        const detailedResults = document.getElementById('detailed-results');

        // Input Containers
        const depositSavingsInputs = document.getElementById('depositSavingsInputs');
        const loanInputs = document.getElementById('loanInputs');

        // Deposit/Savings Specific Elements
        const principalInput = document.getElementById('principal');
        const termInput = document.getElementById('term');
        const rateInput = document.getElementById('rate');
        const principalLabel = document.getElementById('principalLabel');
        const termLabel = document.getElementById('termLabel');
        const interestTypeRadios = document.querySelectorAll('input[name="interestType"]');
        const taxTypeSelect = document.getElementById('taxType');

        // Loan Specific Elements
        const loanPrincipalInput = document.getElementById('loan-principal');
        const loanTermInput = document.getElementById('loan-term');
        const loanRateInput = document.getElementById('loan-rate');
        const loanRepaymentMethodSelect = document.getElementById('loan-repayment-method');

        const TAX_RATES = {
            general: 0.154,      // 일반과세 (이자소득세 14% + 지방소득세 1.4%)
            taxFree: 0,          // 비과세
            preferential: 0.095  // 세금우대 (이자소득세 9% + 지방소득세 0.5%)
        };

        // --- Helper Functions ---
        const formatCurrency = (number) => {
            return new Intl.NumberFormat('ko-KR', { style: 'currency', currency: 'KRW' }).format(Math.round(number));
        };

        const showResult = (title, mainAmount, messageHtml, isError = false) => {
            resultTitle.textContent = title;
            resultAmount.textContent = formatCurrency(mainAmount);
            resultMessage.innerHTML = messageHtml;
            detailedResults.innerHTML = ''; // Clear previous detailed results

            if (isError) {
                resultAmount.classList.replace('text-blue-600', 'text-red-500');
            } else {
                resultAmount.classList.replace('text-red-500', 'text-blue-600');
            }
        };

        const addDetailedResult = (label, value) => {
            const div = document.createElement('div');
            div.className = 'flex justify-between items-center';
            div.innerHTML = `<span class="text-gray-600">${label}</span><span class="font-semibold text-gray-800">${value}</span>`;
            detailedResults.appendChild(div);
        };
        
        const resetResults = () => {
            resultTitle.textContent = "&#x1f4b0; 예상 결과";
            resultAmount.textContent = formatCurrency(0);
            resultMessage.textContent = "항목을 입력 후 '계산하기' 버튼을 눌러주세요.";
            detailedResults.innerHTML = '';
            resultAmount.classList.replace('text-red-500', 'text-blue-600');
        };

        // --- UI Update Logic based on Calculator Type ---
        const updateUI = (type) => {
            // Hide all input groups first
            depositSavingsInputs.classList.add('hidden');
            loanInputs.classList.add('hidden');

            // Set all inputs to not required initially
            principalInput.removeAttribute('required');
            termInput.removeAttribute('required');
            rateInput.removeAttribute('required');
            loanPrincipalInput.removeAttribute('required');
            loanTermInput.removeAttribute('required');
            loanRateInput.removeAttribute('required');

            if (type === 'deposit' || type === 'savings') {
                depositSavingsInputs.classList.remove('hidden');
                depositSavingsInputs.classList.add('contents');
                principalInput.setAttribute('required', 'required');
                termInput.setAttribute('required', 'required');
                rateInput.setAttribute('required', 'required');
                
                if (type === 'deposit') {
                    principalLabel.textContent = "예금 금액 (원)";
                    termLabel.textContent = "예치 기간 (개월)";
                    principalInput.placeholder = "예: 10,000,000";
                    termInput.max = 600; // 50 years
                } else { // savings
                    principalLabel.textContent = "월 납입액 (원)";
                    termLabel.textContent = "적금 기간 (개월)";
                    principalInput.placeholder = "예: 500,000";
                    termInput.max = 120; // 10 years
                }
            } else if (type === 'loan') {
                loanInputs.classList.remove('hidden');
                loanInputs.classList.add('contents');
                loanPrincipalInput.setAttribute('required', 'required');
                loanTermInput.setAttribute('required', 'required');
                loanRateInput.setAttribute('required', 'required');
            }
            resetResults();
        };

        // Event listener for calculator type change
        calcTypeRadios.forEach(radio => {
            radio.addEventListener('change', (event) => {
                updateUI(event.target.value);
            });
        });

        // --- Calculation Functions ---

        // 1. 예금 이자 계산
        const calculateDeposit = (principal, annualRate, termMonths, interestType, taxType) => {
            const monthlyRate = annualRate / 100 / 12;
            let preTaxInterest = 0;

            if (interestType === 'simple') { // 단리
                preTaxInterest = principal * (annualRate / 100) * (termMonths / 12);
            } else { // 월복리 (Compound Monthly)
                let currentAmount = principal;
                for (let i = 0; i < termMonths; i++) {
                    currentAmount += currentAmount * monthlyRate;
                }
                preTaxInterest = currentAmount - principal;
            }

            const taxRate = TAX_RATES[taxType];
            const taxAmount = preTaxInterest * taxRate;
            const afterTaxInterest = preTaxInterest - taxAmount;
            const maturityAmount = principal + afterTaxInterest;

            return { principal, preTaxInterest, taxAmount, afterTaxInterest, maturityAmount };
        };

        // 2. 적금 이자 계산 (매월 납입, 단리/월복리)
        const calculateSavings = (monthlyDeposit, annualRate, termMonths, interestType, taxType) => {
            const monthlyRate = annualRate / 100 / 12;
            let preTaxInterest = 0;
            let totalPrincipal = monthlyDeposit * termMonths;

            if (interestType === 'simple') { // 단리
                // 한국식 적금 단리 계산: 원금 * 이율 * (총 납입횟수 + 1) / 2 / 12 (연이율 기준)
                preTaxInterest = monthlyDeposit * (annualRate / 100) * (termMonths * (termMonths + 1) / 2) / 12;
            } else { // 월복리
                let futureValue = 0;
                for (let i = 0; i < termMonths; i++) {
                    futureValue += monthlyDeposit * Math.pow(1 + monthlyRate, termMonths - i);
                }
                preTaxInterest = futureValue - totalPrincipal;
            }

            const taxRate = TAX_RATES[taxType];
            const taxAmount = preTaxInterest * taxRate;
            const afterTaxInterest = preTaxInterest - taxAmount;
            const maturityAmount = totalPrincipal + afterTaxInterest;

            return { totalPrincipal, preTaxInterest, taxAmount, afterTaxInterest, maturityAmount };
        };

        // 3. 대출 이자 계산
        const calculateLoan = (principal, annualRate, termMonths, repaymentMethod) => {
            const monthlyRate = annualRate / 100 / 12;
            let totalInterest = 0;
            let monthlyPaymentDetails = []; // To store monthly payment for principal equal

            if (repaymentMethod === 'equalPrincipalInterest') { // 원리금 균등 상환
                let monthlyPayment;
                if (monthlyRate === 0) {
                    monthlyPayment = principal / termMonths;
                } else {
                    const numerator = monthlyRate * Math.pow(1 + monthlyRate, termMonths);
                    const denominator = Math.pow(1 + monthlyRate, termMonths) - 1;
                    monthlyPayment = principal * (numerator / denominator);
                }
                totalInterest = (monthlyPayment * termMonths) - principal;
                addDetailedResult("월 상환액 (원리금)", formatCurrency(monthlyPayment));

            } else if (repaymentMethod === 'equalPrincipal') { // 원금 균등 상환
                const monthlyPrincipalPayment = principal / termMonths;
                let remainingPrincipal = principal;
                for (let i = 0; i < termMonths; i++) {
                    const monthlyInterest = remainingPrincipal * monthlyRate;
                    totalInterest += monthlyInterest;
                    remainingPrincipal -= monthlyPrincipalPayment;
                }
                // For display, approximate average monthly payment
                const firstMonthPayment = monthlyPrincipalPayment + (principal * monthlyRate);
                const lastMonthPayment = monthlyPrincipalPayment + (monthlyPrincipalPayment * monthlyRate); // Principal after last payment is 0, so only interest on last principal part.
                addDetailedResult("첫 달 상환액", formatCurrency(firstMonthPayment));
                addDetailedResult("마지막 달 상환액", formatCurrency(lastMonthPayment));

            } else if (repaymentMethod === 'maturityLumpSum') { // 원금 만기 일시 상환
                // 매월 이자만 납부, 만기에 원금 상환
                totalInterest = principal * (annualRate / 100) * (termMonths / 12);
                const monthlyInterestPayment = principal * monthlyRate;
                addDetailedResult("매월 이자 상환액", formatCurrency(monthlyInterestPayment));
                addDetailedResult("만기 시 원금 상환액", formatCurrency(principal));
            }
            
            return { principal, totalInterest };
        };


        // --- Main Calculate Button Event Listener ---
        calculateBtn.addEventListener('click', (e) => {
            e.preventDefault();
            
            const currentType = document.querySelector('input[name="calcType"]:checked').value;
            let errorMessage = "모든 항목을 정확히 입력해 주세요.";
            let calculationResult = {};

            try {
                if (currentType === 'deposit' || currentType === 'savings') {
                    const principal = parseFloat(principalInput.value);
                    const termMonths = parseInt(termInput.value);
                    const annualRate = parseFloat(rateInput.value);
                    const interestType = document.querySelector('input[name="interestType"]:checked').value;
                    const taxType = taxTypeSelect.value;

                    if (isNaN(principal) || isNaN(termMonths) || isNaN(annualRate) || principal <= 0 || termMonths <= 0 || annualRate < 0) {
                        showResult("오류!", 0, errorMessage, true);
                        return;
                    }

                    if (currentType === 'deposit') {
                        calculationResult = calculateDeposit(principal, annualRate, termMonths, interestType, taxType);
                        showResult(
                            "&#x1f4b0; 만기 시 수령액", 
                            calculationResult.maturityAmount,
                            "", // Clear result message
                            false
                        );
                        addDetailedResult("총 원금", formatCurrency(calculationResult.principal));
                        addDetailedResult("세전 이자", formatCurrency(calculationResult.preTaxInterest));
                        addDetailedResult("이자 과세액", formatCurrency(calculationResult.taxAmount));
                        addDetailedResult("세후 이자", formatCurrency(calculationResult.afterTaxInterest));

                    } else { // savings
                        calculationResult = calculateSavings(principal, annualRate, termMonths, interestType, taxType);
                        showResult(
                            "&#x1f4b0; 만기 시 수령액", 
                            calculationResult.maturityAmount,
                            "", // Clear result message
                            false
                        );
                        addDetailedResult("총 납입 원금", formatCurrency(calculationResult.totalPrincipal));
                        addDetailedResult("세전 이자", formatCurrency(calculationResult.preTaxInterest));
                        addDetailedResult("이자 과세액", formatCurrency(calculationResult.taxAmount));
                        addDetailedResult("세후 이자", formatCurrency(calculationResult.afterTaxInterest));
                    }

                } else if (currentType === 'loan') {
                    const principal = parseFloat(loanPrincipalInput.value);
                    const termMonths = parseInt(loanTermInput.value);
                    const annualRate = parseFloat(loanRateInput.value);
                    const repaymentMethod = loanRepaymentMethodSelect.value;

                    if (isNaN(principal) || isNaN(termMonths) || isNaN(annualRate) || principal <= 0 || termMonths <= 0 || annualRate < 0) {
                        showResult("오류!", 0, errorMessage, true);
                        return;
                    }

                    calculationResult = calculateLoan(principal, annualRate, termMonths, repaymentMethod);
                    showResult(
                        "&#x1f4b0; 총 이자 금액", 
                        calculationResult.totalInterest,
                        "", // Clear result message
                        false
                    );
                    addDetailedResult("대출 원금", formatCurrency(calculationResult.principal));
                    addDetailedResult("총 상환액", formatCurrency(calculationResult.principal + calculationResult.totalInterest));
                }

            } catch (error) {
                console.error("계산 중 치명적인 오류 발생:", error);
                showResult("시스템 오류!", 0, "계산 중 오류가 발생했습니다. Console을 확인해 주세요.", true);
            }
        });

        // --- Reset Button Event Listener ---
        resetBtn.addEventListener('click', () => {
            document.getElementById('interestForm').reset();
            resetResults();
            // Re-trigger UI update for the currently selected tab
            const currentType = document.querySelector('input[name="calcType"]:checked').value;
            updateUI(currentType);
        });

        // Initial UI setup on page load
        document.addEventListener('DOMContentLoaded', () => {
            const initialType = document.querySelector('input[name="calcType"]:checked').value;
            updateUI(initialType);
            resetResults(); // Ensure initial state is clear
        });

    </script>

</body>
</html>



<p class="myb_a wp-block-paragraph"><a href="https://infomimi.com/2026-%ED%87%B4%EC%A7%81%EA%B8%88-%EA%B3%84%EC%82%B0%EA%B8%B0-%ED%87%B4%EC%A7%81%EA%B8%88-%EA%B0%84%EB%8B%A8-%EA%B3%84%EC%82%B0/">퇴직금 계산기 바로가기</a></p>



<div class="wp-block-uagb-image aligncenter uagb-block-4660b755 wp-block-uagb-image--layout-default wp-block-uagb-image--effect-static wp-block-uagb-image--align-center"><figure class="wp-block-uagb-image__figure"><img decoding="async" srcset="https://infomimi.com/wp-content/uploads/2025/10/20251030_105707.webp ,https://infomimi.com/wp-content/uploads/2025/10/20251030_105707.webp 780w, https://infomimi.com/wp-content/uploads/2025/10/20251030_105707.webp 360w" sizes="auto, (max-width: 480px) 150px" src="https://infomimi.com/wp-content/uploads/2025/10/20251030_105707.webp" alt="대출이자계산기 예금, 적금 종합이자계산기" class="uag-image-257" width="545" height="508" title="대출이자계산기 예금, 적금 종합이자계산기" loading="lazy" role="img"/></figure></div>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">259</post-id>	</item>
	</channel>
</rss>
