Compute the rate of interest per period.
Parameters: | nper : array_like
pmt : array_like
pv : array_like
fv : array_like
when : {{‘begin’, 1}, {‘end’, 0}}, {string, int}, optional
guess : float, optional
tol : float, optional
maxiter : int, optional
|
---|
Notes
The rate of interest rate is computed by solving the equation:
fv + pv*(1+rate)**nper + pmt*(1+rate*when)/rate * ((1+rate)**nper - 1) = 0
or, if rate = 0:
fv + pv + pmt * nper = 0