compound_interest
Calculate investment growth with compound interest and optional monthly contributions to project future value, total interest earned, and year-by-year growth.
Instructions
Project investment growth with compound interest and optional regular contributions.
Shows final value, total contributions, total interest earned, and a year-by-year growth table. Uses the standard compound interest formula with optional periodic contributions.
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": {
"principal": "<principal>",
"annual_rate_pct": "<annual_rate_pct>",
"years": "<years>"
},
"name": "compound_interest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| principal | Yes | Initial investment amount | |
| annual_rate_pct | Yes | Expected annual return percentage (e.g., 7 for 7%) | |
| years | Yes | Number of years to invest | |
| monthly_contribution | No | Additional amount added every month (0 for lump sum only) | |
| compounding_frequency | No | How often interest compounds: 'monthly', 'quarterly', 'annually' | monthly |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||