TieredBal

class tmval.growth.TieredBal(tiers: list, rates: list)[source]

TieredBal is a callable growth pattern for tiered investment accounts. A tiered investment account is one where the interest paid varies depending on the balance. For example, 1% for the first $1000, 2% for the next $4000, and 3% afterward.

To create a TieredBal, supply a list of tiers and a corresponding list of interest rates for those tiers. The tiers are the lower bounds for the intervals corresponding to the interest rate (the first value will usually be 0).

Parameters
  • tiers (list) – a list of tiers, for example [0, 1000, 5000].

  • rates (list) – a list of interest rates, for example [.01, .02, .03].

Returns

a TieredBal object.

Return type

TieredBal