Compute the present value.
Parameters: | rate : array_like
nper : array_like
pmt : array_like
fv : array_like, optional
when : {{‘begin’, 1}, {‘end’, 0}}, {string, int}, optional
|
---|---|
Returns: | out : ndarray, float
|
Notes
The present value pv is computed by solving the equation:
fv +
pv*(1 + rate)**nper +
pmt*(1 + rate*when)/rate*((1 + rate)**nper - 1) = 0
or, when rate = 0:
fv + pv + pmt * nper = 0