| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 1 1 2 1 | define(function () {
/**
* Basic compound interest
* @version 0.2.0 (2012/03/20)
*/
function compoundInterest(interestRate, nPeriods, presentValue) {
return presentValue * Math.pow(1 + interestRate, nPeriods);
}
return compoundInterest;
});
|