Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. //Display APR
  2. monthlyRate = Math.pow(1.0 + percentage, 1.0 / 12.0) - 1;
  3. monthlyAmount = amount * (monthlyRate / (1 - Math.pow(1 + monthlyRate, -Months)));
  4. totalRepayable = monthlyAmount * Months;
  5.  
  6. document.getElementById("apr").innerHTML = totalRepayable;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement