Calculators
Savings goal calculator API
Solve the monthly contribution to hit a goal by a deadline with monthly compounding using the future-value-of-annuity formula pmt=(FV-PV*(1+r)^n)*r/((1+r)^n-1). Answers 'how much to save monthly for $10000 in 24 months', 'monthly savings to reach a goal at 4% interest', 'will my current savings already get there'.
Price$0.01per request
MethodPOST
Route/v1/calc/budget-savings-goal
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
budgetsavingsgoalannuitycompoundinterestcalculatormoney
API URL
Integration docshttps://x402.hexl.dev/v1/calc/budget-savings-goalExample request
{
"goalAmount": 10000,
"months": 24,
"currentSavings": 1000,
"annualRatePercent": 4
}Example response
{
"goalAmount": 10000,
"months": 24,
"currentSavings": 1000,
"annualRatePercent": 4,
"monthlyContribution": 357.49,
"projectedGrowthOnCurrent": 83.14,
"totalContributed": 9579.78,
"interestEarned": 420.22,
"alreadyMet": false
}Input schema
{
"type": "object",
"required": [
"goalAmount",
"months"
],
"properties": {
"goalAmount": {
"type": "number",
"description": "Target amount in dollars",
"examples": [
10000
]
},
"months": {
"type": "number",
"description": "Months until the deadline",
"examples": [
24
]
},
"currentSavings": {
"type": "number",
"description": "Current savings in dollars",
"examples": [
1000
]
},
"annualRatePercent": {
"type": "number",
"description": "Annual interest rate percent",
"examples": [
4
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}