' txt+='
'; txt+='
' txt+=''; txt+=''; thePrincipal=eval(thePrincipal);//document.f.thePrincipal.value; for(i=1;i<=totalPayments;i++){ tablescheme=''; interest=thePrincipal*apr/ppy/100; thePrincipal+=interest; principal=thePayment-interest; thePrincipal-=thePayment; txt+=tablescheme; txt+=''; txt+=''; txt+=''; txt+=''; txt+=''; } txt+='
PmtPayment
Amount
InterestPrincipalBalance
'+i+''+toCurrency(thePayment)+''+toCurrency(interest)+''+toCurrency(principal)+''+toCurrency(thePrincipal)+'
' txt+='

'; var theSchedule=window.open('', 'the_schedule' ,'scrollbars=yes,top=100,left=300,width=375,height=450'); theSchedule.document.write(txt); theSchedule.document.close() } function calc(form){ with(form){ thePrincipal=makeNumber(amount.value); apr=makeNumber(rate.value); ppy=(howManyperYear.value); howLong=(howlong.value); totalPayments=howLong*ppy; if((totalPayments%1) != 0) alert("I suggest you don't use decimals\nin years field or payment field") var a=Math.pow(1+apr/100/ppy,totalPayments); thePayment=(thePrincipal*a*(apr/100/ppy))/(a-1); if(!isNaN(thePayment)){ payment$.value=commaCurrency(thePayment); total$.value=commaCurrency(thePayment*totalPayments); totalint$.value=commaCurrency((thePayment*totalPayments-thePrincipal)); }else{ payment$.value="" } } } function zero(){ with (document.f){ amount.value="";rate.value="";howManyperYear.value="";howlong.value=""; } } //--> Skip to main content

Payment Calculator

Loan amount

Annual interest

Repayment period in years

Payments per year

Payment amount

Total you pay

Total interest you pay