tmval.eff_int_from_nom_int

tmval.conversions.eff_int_from_nom_int(im: float, m: float, new_t: float = None) → tmval.conversions.RateTemplate[source]

A nominal/effective interest/discount rate converter. Given a nominal interest 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
  • im (float) – the nominal interest rate.

  • m (float) – the compounding frequency.

  • new_t (float, optional) – the desired unit of time, defaults to None.

Returns

an effective interest rate.

Return type

RateTemplate