present value formula js code example
Example: present value formula js
function PV(rate, nper, pmt)
{
return pmt / rate * (1 - Math.pow(1 + rate, -nper));
}
function PV(rate, nper, pmt)
{
return pmt / rate * (1 - Math.pow(1 + rate, -nper));
}