Skip to content

futureValue

futureValue(presentValue, rate, periods) → number · Financial

Calculates the future value of a present amount given compound interest.

  • presentValue (required): current amount

  • rate (required): interest rate per period (e.g., 0.05 for 5%)

  • periods (required): number of compounding periods

bash
echo '{"pv": 1000, "rate": 0.05, "years": 10}' | utlx -e 'futureValue($input.pv, $input.rate, $input.years)'
# 1628.89
utlx
{
  futureAmount: futureValue($input.principal, $input.annualRate, $input.years)
}

Released under AGPL-3.0.