tmval.get_number_of_pmts

tmval.annuity.get_number_of_pmts(pmt: float, fv: float, period: float, gr: tmval.rate.Rate) → int[source]

Given payment information represented by an annuity, calculates the number of payments required to reach a desired future value.

Parameters
  • pmt (float) – The payment amount.

  • fv (float) – The desired future value.

  • period (float) – The payment period, as a fraction of a year.

  • gr (Rate) – A growth rate object.

Returns

The number of payments.

Return type

int