tmval.simple_solver

tmval.growth.simple_solver(pv: Optional[float] = None, fv: Optional[float] = None, gr: Union[float, tmval.rate.Rate, None] = None, t: Optional[float] = None, rate_res='Simple Interest')[source]

Simple interest solver for when one variable is missing - returns missing value. You need to supply three out of the four arguments, and the function will solve for the missing one.

Parameters
  • pv (float) – the present value

  • fv (float) – the future value

  • gr (float, Rate) – the interest rate

  • t (float) – the time

  • rate_res (str) – if solving for a rate, whether you want simple discount or interest

Returns

the present value, future value, interest rate, or time - whichever is missing.

Return type

float, Rate