Catalog/pf-savings-goal

Calculators

Required monthly savings for a goal API

Solve for the monthly contribution required to reach a target by a deadline with PMT = (target − PV(1+i)^n)·i/((1+i)^n − 1), accounting for the growth of existing savings, and flag when no contributions are needed. Answers 'how much to save monthly for 100k in 10 years','required contribution to hit my goal','am I already on track without saving more'.

Price$0.01per request
MethodPOST
Route/v1/calc/pf-savings-goal
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
calcsavings-goalsinking-fundmonthly-contributionplanningfuture-valuepersonal-financetarget
API URLhttps://x402.hexl.dev/v1/calc/pf-savings-goal
Integration docs
Example request
{
  "targetAmount": 100000,
  "currentSavings": 10000,
  "years": 10,
  "annualReturnPercent": 6
}
Example response
{
  "formula": "PMT = (target − PV(1+i)^n)·i / ((1+i)^n − 1)",
  "requiredMonthlyContribution": 499.18,
  "projectedFromCurrentSavings": 18193.97,
  "targetAmount": 100000,
  "onTrackWithoutContributions": false,
  "breakdown": {
    "targetAmount": 100000,
    "currentSavings": 10000,
    "years": 10,
    "annualReturnPercent": 6,
    "months": 120
  }
}
Input schema
{
  "type": "object",
  "required": [
    "targetAmount",
    "years"
  ],
  "properties": {
    "targetAmount": {
      "type": "number",
      "examples": [
        100000
      ]
    },
    "currentSavings": {
      "type": "number",
      "examples": [
        10000
      ]
    },
    "years": {
      "type": "number",
      "examples": [
        10
      ]
    },
    "annualReturnPercent": {
      "type": "number",
      "description": "default 0",
      "examples": [
        6
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}