Posted By

vinotht on 05/16/11


Tagged

javascript


Versions (?)

Compound Interest


 / Published in: JavaScript
 

Calculating Compound Interest. Real time Compound Interest Calculator

  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  

You need to login to post a comment.