tmval.get_perpetuity_gr¶
-
tmval.annuity.
get_perpetuity_gr
(amount: float, pv: float, period: float, imd: str = 'immediate') → tmval.rate.Rate[source]¶ Given a payment amount, payment frequency, and present value, returns a compound annual effective interest rate.
- Parameters
amount (float) – The payment amount.
pv (float) – The present value.
period (float) – The payment period, as a fraction of a year.
imd (str) – Whether the perpetuity is ‘immediate’ or ‘due’.
- Returns
The annual effective interest rate.
- Return type