tmval.eff_int_from_eff_disc

tmval.conversions.eff_int_from_eff_disc(d: float, old_t: float = None, new_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 new unit of time, returns an effective interest rate at the new unit of time. If no unit of time (either old or new) is provided, it is assumed to be 1, i.e., a 1-year period.

Parameters
  • d (float) – the effective discount rate.

  • old_t (float, optional) – the old unit of time, defaults to None.

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

Returns

an effective interest rate, at the new unit of time.

Return type

RateTemplate