Skip to content
PithLab

↑↓ to move · Enter to open · Esc to close

Savings Goal Calculator API

Savings goal planner: the monthly deposit needed to reach a target by a deadline, or how long a given monthly deposit takes, with monthly interest.

POST /api/v1/tools/savings-goal-calculatorMCP savings_goal_calculatorCalculators

Find out how much to save each month to hit a goal by a deadline, or how long your monthly savings will take to get there, with interest and a yearly breakdown.

Input

Send these as a JSON object. Unknown fields are rejected.

mode
deadline: find the monthly deposit to reach target in `months`. deposit: find how many months `deposit` a month takes. (string, one of deadline, deposit, default "deadline")
target
Savings goal (greater than 0). (number, 0 to …, required)
current
Amount already saved. (number, 0 to …, default 0)
rate
Annual interest rate in percent (0 to 100), compounded monthly. (number, 0 to 100, default 0)
months
deadline mode: months until the goal date (1 to 1200). (integer, 1 to 1200)
deposit
deposit mode: amount saved at the end of each month. (number, 0 to …)
breakdown
Include the year-by-year rows (deposits, interest, balance). (boolean, default false)
curl https://pithlab.com/api/v1/tools/savings-goal-calculator \n  -H "Authorization: Bearer $PITHLAB_KEY" \n  -H "Content-Type: application/json" \n  -d '{"mode":"deadline","target":10000,"current":1000,"rate":4,"months":24}'
Example response
{
  "ok": true,
  "result": {
    "monthlyDeposit": 357.49096620362405,
    "months": 24,
    "totalDeposits": 8579.783188886977,
    "totalInterest": 420.21681111279577,
    "finalBalance": 9999.999999999773,
    "alreadyThere": false,
    "text": "Save 357.49 a month for 24 months (2 years) to reach 10,000.00."
  }
}