tmval.nom_int_from_eff_int¶
-
tmval.conversions.
nom_int_from_eff_int
(i: float, new_m: float, old_t: float = None) → tmval.conversions.RateTemplate[source]¶ A nominal/effective interest/discount rate converter. Given an effective interest rate and desired compounding frequency, returns the nominal interest rate.
- Parameters
i (float) – the effective interest rate.
new_m (float,) – the desired compounding frequency.
old_t (float, optional) – the interval of the effective interest rate. Assumed to be 1 if not provided.
- Returns
the nominal interest rate.
- Return type
RateTemplate