2016 New Heartland CYCLONE 4200 Toy Hauler in Missouri, MO. 2016 HEARTLAND CYCLONE 4200, 2016 HEARTLAND CYCLONE 4200 FOR MORE INFORMATION CALL 314-743-3939 GVWR 20,000 lbs Dry Weight 15,725 lbs Hitch Weight 3,525 lbs
| 0 | 0 | $' + lastBalance + ' | ';
total_interest = 0;
total_payment = 0;
for (i = 0; i < numberOfPayments; i++) {
interest = lastBalance * interestRate / monthsPerYear;
interest = Math.round(interest * 100) / 100;
principal = Math.round((paymentAmount - interest) * 100) / 100;
lastBalance = Math.round((lastBalance - principal) * 100) / 100;
if (i == numberOfPayments - 1 && lastBalance > 0) {
console.log("last payment:" + paymentAmount + "," + lastBalance);
paymentAmount = parseFloat(principal) + parseFloat(lastBalance);
console.log("last payment: " + paymentAmount + "," + lastBalance);
lastBalance = 0;
paymentAmount = Math.round(paymentAmount * 100) / 100;
principal = Math.round((paymentAmount - interest) * 100) / 100;
}
total_interest = total_interest + parseFloat(interest);
total_payment = total_payment + parseFloat(paymentAmount);
html += 'Payment ' + (i + 1) + ' | | $' + paymentAmount + ' | $' + interest + ' | $' + principal + ' | $' + lastBalance + ' |
';
}
total_payment = Math.round(total_payment * 100) / 100
total_interest = Math.round(total_interest * 100) / 100
html += 'Grand Total | $' + loanAmount + ' | $' + total_payment + ' | $' + total_interest + ' | $' + loanAmount + ' | 0 |
';
$("#payment-schedule tbody").html(html);
//$('#calc_result_modal').modal({'keyboard': true})
const myModalAlternative = new bootstrap.Modal('#calc_result_modal', {'keyboard': true});
myModalAlternative.show();
}