tmval.nom_disc_from_nom_int

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

A nominal/effective interest/discount rate converter. Given a nominal interest rate, along with a desired compounding frequency, returns an nominal discount rate at the desired compounding frequency.

Parameters
  • im (float) – the nominal interest rate.

  • m (float) – the compounding frequency

  • new_m (float) – the desired compounding frequency.

Returns

a nominal discount rate, compounded new_m times per year

Return type

RateTemplate