[][src]Function financial::mirr

pub fn mirr(values: &[f64], finance_rate: f64, reinvest_rate: f64) -> f64

Returns the modified internal rate of return for a series of periodic cash flows. MIRR considers both the cost of the investment and the interest received on reinvestment of cash.

Example

let cf = [-1000., 100., 200., 300., 400., 400., 400.];
let finance_rate = 0.1;
let reinvest_rate = 0.1;
let mirr = financial::mirr(&cf, finance_rate, reinvest_rate);