tmval.eff_disc_from_nom_int

tmval.conversions.eff_disc_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 discount 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.

Returns

an effective discount rate.

Return type

RateTemplate