tmval.Accumulation.discount_func

Accumulation.discount_func(t: float, fv: Optional[float] = None) → float[source]

The discount function is the reciprocal of the accumulation function. Returns the discount factor at time t, which can be used to get the present value of an investment.

Parameters
  • t (float) – the time at which you would like to get the discount factor.

  • fv (float, optional) – float: the future value. Assumed to be 1 if not provided.

Returns

the discount factor at time t

Return type

float