tmval.read_iym

tmval.growth.read_iym(table: dict, t0: float, t: float)tmval.rate.Rate[source]

Reads a value from a table of interest rates using the investment year method. A table might look something like this:

iym_table = { 2000: [.06, .065, .0575, .06, .065], 2001: [.07, .0625, .06, .07, .0675], 2002: [.06, .06, .0725, .07, .0725], 2003: [.0775, .08, .08, .0775, .0715] }

Parameters
  • table (dict) – A table of interest rates as a dictionary, with years as the keys.

  • t0 (float) – The initial investment time.

  • t (float) – The desired lookup time for which the rate applies.

Returns

An interest rate applicable to the desired lookup time.

Return type

Rate