Retirement calculator
calc_retirementRead-only educational calculator. Projects retirement savings from age, contributions, return assumptions, and income target, returns the year-by-year balance at each age, then estimates the gap using a 4% withdrawal assumption. Returns a result from caller-supplied public inputs without changing page or account state, accessing BetterOff customer data, or providing personalized financial advice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currentAge | No | Current age | |
| displayMode | No | Projection mode | nominal |
| annualFeePct | No | Annual investment fees (%) — Deducted from the assumed annual return. | |
| retirementAge | No | Retirement age | |
| currentSavings | No | Current retirement savings | |
| annualReturnPct | No | Expected annual return (%) — Nominal annual return before inflation. | |
| inflationRatePct | No | Inflation rate (%) | |
| withdrawalRatePct | No | Withdrawal-rate assumption (%) — Planning assumption only; it is not guaranteed to be safe. | |
| otherMonthlyIncome | No | Other monthly retirement income — Expected Social Security, pension, or other income that reduces the amount the portfolio must provide. | |
| monthlyContribution | No | Monthly contribution | |
| desiredMonthlyIncome | No | Desired retirement income — Monthly income target in retirement. | |
| annualContributionGrowthPct | No | Annual contribution growth (%) — Increase applied to monthly contributions after each projection year. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||