Education Loan in India Calculator

Education Loan Calculator

Calculate your monthly education loan repayment based on principal, interest rate, and loan tenure.

Not calculated yet.

let emiSteps = “”; const currencySymbol = “₹”, fixedCurrency = “INR”; function calculateEMI(){ emiSteps=””; const loanAmount = parseFloat(document.getElementById(“loanAmount”).value); const interestRate = parseFloat(document.getElementById(“interestRate”).value) / 100 / 12; const loanTenure = parseFloat(document.getElementById(“loanTenure”).value) * 12; if(isNaN(loanAmount) || isNaN(interestRate) || isNaN(loanTenure) || loanAmount <= 0 || interestRate <= 0 || loanTenure <= 0){ alert("Please enter valid positive values for all fields."); return; } const emi = (loanAmount * interestRate * Math.pow(1 + interestRate, loanTenure)) / (Math.pow(1 + interestRate, loanTenure) – 1); document.getElementById("monthlyEMI").value = formatCurrency(emi); emiSteps += `Inputs:
Loan Amount: ${formatCurrency(loanAmount)}
Interest Rate: ${(interestRate * 100 * 12).toFixed(1)}% per annum
Loan Tenure: ${loanTenure / 12} years

`; emiSteps += `Formulas:
EMI = (Loan Amount × Monthly Interest Rate × (1 + Monthly Interest Rate) ^ Tenure) / ((1 + Monthly Interest Rate) ^ Tenure – 1)

`; emiSteps += `Results:
Monthly EMI: ${formatCurrency(emi)}
`; if(document.getElementById(“calculationStepsEMI”).style.display===”block”){ document.getElementById(“calculationStepsEMI”).innerHTML = emiSteps; } } function resetCalculator(){ document.querySelectorAll(“#calculator input”).forEach(el => el.value = “”); emiSteps = “”; document.getElementById(“calculationStepsEMI”).innerHTML = “

Not calculated yet.

“; } function toggleEMISteps(){ const s = document.getElementById(“calculationStepsEMI”); const a = document.getElementById(“toggleArrowEMI”); if(s.style.display === “none” || s.style.display === “”){ s.style.display = “block”; a.style.transform = “rotate(180deg)”; s.innerHTML = emiSteps || “

Not calculated yet.

“; } else { s.style.display = “none”; a.style.transform = “rotate(0deg)”; } } function formatCurrency(n) { return currencySymbol + n.toFixed(2) + ” ” + fixedCurrency; }

Leave a Reply

Your email address will not be published. Required fields are marked *