numpy.mirr

numpy.mirr(values, finance_rate, reinvest_rate) [source]

Modified internal rate of return.

Parameters:
values : array_like

Cash flows (must contain at least one positive and one negative value) or nan is returned. The first value is considered a sunk cost at time zero.

finance_rate : scalar

Interest rate paid on the cash flows

reinvest_rate : scalar

Interest rate received on the cash flows upon reinvestment

Returns:
out : float

Modified internal rate of return

© 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
https://docs.scipy.org/doc/numpy-1.16.1/reference/generated/numpy.mirr.html