tmval.nom_int_from_eff_disc¶
-
tmval.conversions.
nom_int_from_eff_disc
(d: float, new_m: float, old_t: float = None) → tmval.conversions.RateTemplate[source]¶ A nominal/effective interest/discount rate converter. Given an effective discount rate and unit of time, along with a desired compounding frequency, returns a nominal interest rate at the desired compounding frequency. If no unit of time is provided (applicable to the effective discount rate), it is assumed to be 1, i.e., a 1-year period.
- Parameters
d (float) – the effective discount rate.
new_m (float) – the desired compounding frequency.
old_t (float, optional) – the old unit of time, defaults to None.
- Returns
a nominal interest rate, compounded new_m times per year
- Return type
RateTemplate