tmval.eff_int_from_nom_disc¶
-
tmval.conversions.
eff_int_from_nom_disc
(dm: float, m: float, new_t: float = None) → tmval.conversions.RateTemplate[source]¶ A nominal/effective interest/discount rate converter. Given a nominal discount rate, along with a desired unit of time, returns an effective interest rate at the desired unit of time. If no unit of time is provided, it is assumed to be 1, i.e., a 1-year period.
- Parameters
dm (float) – the nominal discount rate.
m (float) – the compounding frequency.
new_t (float) – the desired unit of time, defaults to None.
- Returns
an effective interest rate.
- Return type
RateTemplate