Education Calculator
Investment Calculator
Loan Calculator
Mortgage Calculator
Retirement Calculator
Loan Rates
Deposit Rates
Fee Shedule
");
doc.write("Payment # | Balance Owed Before Payment | Interest Paid | Principal Paid | Cumulative Interest Paid | Payment | Cumulative Payment | ");
var cumint = 0;
var cumreal = 0;
var cumpay = 0;
var interest = 0;
var realpay = 0;
var defint = 0;
var num = 1;
while(balance > 0){
interest = balance * rate;
principal = payment - interest;
if(principal < 0){alert("There are errors in this form.");return;}
if(principal > balance-0.01) principal = balance;
cumint = cumint + interest;
cumreal = cumreal + interest;
realpay = principal + interest;
cumpay = cumpay + realpay;
doc.write("",num," | ", format(balance), " | ", format(interest), " | ", format(principal), " | ", format(cumreal), " | ", format(realpay), " | ", format(cumpay), " | ");
num++;
balance = balance - principal;
}
doc.write("Payment # | Balance Owed Before Payment | Interest Paid | Principal Paid | Cumulative Interest Paid | Payment | Cumulative Payment | ");
doc.write(" ");
doc.write("
|