CMP Compounded Interest Rate i = (fv / pv) ^ (1/n) - 1 pv = present value fv = future value n - number of periods i = interest rate in percent per period returned as a decimal representation of the interest rate over the period can return NaN (Not a Number) on improbable input values (n = 0 pv = 0)
(fv, pv *Money, n float64)