Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Display APR
- monthlyRate = Math.pow(1.0 + percentage, 1.0 / 12.0) - 1;
- monthlyAmount = amount * (monthlyRate / (1 - Math.pow(1 + monthlyRate, -Months)));
- totalRepayable = monthlyAmount * Months;
- document.getElementById("apr").innerHTML = totalRepayable;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement