Capitec Loan Calculator App

Capitec Loan Calculator App

Capitec Loan Calculator App

Estimate your loan repayment and affordability using the Capitec loan calculator app.

Not calculated yet.

let loanSteps = “”; const currencySymbol = “ZAR”, fixedCurrency = “ZAR”; function calculateLoan(){ loanSteps=””; const loanAmount=parseFloat(document.getElementById(“loanAmount”).value); const loanTerm=parseInt(document.getElementById(“loanTerm”).value); const interestRate=parseFloat(document.getElementById(“interestRate”).value)/100; if(isNaN(loanAmount)||isNaN(loanTerm)||isNaN(interestRate)||loanAmount<=0||loanTerm<=0){ alert("Please enter valid positive values for all fields."); return; } const monthlyRate = interestRate / 12; const monthlyRepayment = (loanAmount * monthlyRate) / (1 – Math.pow(1 + monthlyRate, -loanTerm)); const totalRepayment = monthlyRepayment * loanTerm; document.getElementById("monthlyRepayment").value = formatCurrency(monthlyRepayment); document.getElementById("totalRepayment").value = formatCurrency(totalRepayment); loanSteps += `Inputs:
Loan Amount: ${formatCurrency(loanAmount)}
Loan Term: ${loanTerm} months
Interest Rate: ${(interestRate*100).toFixed(1)}%

`; loanSteps += `Formulas:
Monthly Repayment = Loan Amount × Monthly Interest Rate / (1 – (1 + Monthly Interest Rate) ^ -Loan Term)
Total Repayment = Monthly Repayment × Loan Term

`; loanSteps += `Results:
Monthly Repayment: ${formatCurrency(monthlyRepayment)}
Total Repayment: ${formatCurrency(totalRepayment)}
`; if(document.getElementById(“calculationStepsLoan”).style.display===”block”){ document.getElementById(“calculationStepsLoan”).innerHTML = loanSteps; } } function resetLoan(){ document.querySelectorAll(“#calculator input”).forEach(el=>el.value=””); loanSteps=””; document.getElementById(“calculationStepsLoan”).innerHTML=”

Not calculated yet.

“; } function toggleLoanSteps(){ const s=document.getElementById(“calculationStepsLoan”); const a=document.getElementById(“toggleArrowLoan”); if(s.style.display===”none”||s.style.display===””){ s.style.display=”block”;a.style.transform=”rotate(

Leave a Reply

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