Compound interest / savings growth
calc_compound_interestCalculate compound interest savings from an initial deposit and monthly contributions, with selectable compounding and optional inflation adjustment, returning final balance and yearly breakdown.
Instructions
Project savings with compound interest: an initial deposit plus monthly contributions (at the start or end of each month), a nominal annual rate compounded yearly, half-yearly, quarterly, monthly, daily or continuously, optionally adjusted for inflation ("today's money"). Returns final balance, total deposits, interest earned and a year-by-year table. Rate -50–100 %, 1 month to 100 years. Web version: https://s3eidat.github.io/compound-interest/
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"annualRate": "<annualRate>",
"years": "<years>"
},
"name": "calc_compound_interest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | No | Include the year-by-year table. | |
| years | Yes | Duration in years (fractions allowed, e.g. 1.5; at least one month). | |
| timing | No | Contributions at the end (ordinary annuity) or start (annuity due) of each month. | end |
| initial | No | Initial deposit (default 0). | |
| monthly | No | Monthly contribution (default 0). | |
| inflation | No | Optional yearly inflation in percent, to show the balance in today's money. | |
| annualRate | Yes | Nominal annual interest rate in percent, e.g. 7. | |
| compounding | No | How often interest compounds. | monthly |