Posted By


vinotht on 05/16/11

Tagged


Statistics


Viewed 487 times
Favorited by 0 user(s)

Compound Interest


/ Published in: JavaScript
Save to your folder(s)

Calculating Compound Interest. Real time [Compound Interest Calculator](http://ncalculators.com/interest/compound-interest-calculator.htm "Real time result")


Copy this code and paste it in your HTML
  1. function(year,amount,interest,frequency){
  2.  
  3. var compound_int=0;
  4.  
  5. var interest1=parseFloat(interest/(frequency*100));
  6.  
  7. var val=parseInt(amount)*Math.pow((1+interest1),(frequency*year));
  8.  
  9. return val;
  10.  
  11. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.