1👍
There is a mistake in your second term (A*(Math.pow((1+rate),nper - 1))/rate));
the -1
is going to the power
function. Correct way would be (A*(Math.pow((1+rate),nper) - 1)/rate));
Source:stackexchange.com
1👍
There is a mistake in your second term (A*(Math.pow((1+rate),nper - 1))/rate));
the -1
is going to the power
function. Correct way would be (A*(Math.pow((1+rate),nper) - 1)/rate));