Compound Interest Calculator
compound_interest_calculatorCalculate compound or simple interest, balance, total contributed, interest earned, modeled APY and yearly balances from principal, nominal rate, term and deposit timing.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"years": 2,
"principal": 1000,
"annualRate": 10,
"contribution": 100,
"compoundingPerYear": 1,
"contributionTiming": "end",
"contributionFrequency": "yearly"
},
"name": "compound_interest_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Interest calculation; default compound | |
| years | Yes | Term in years; a fractional tail earns modeled interest | |
| principal | Yes | Initial principal (USD; at most two decimal places) | |
| annualRate | Yes | Nominal annual rate / APR (%) | |
| contribution | No | Recurring deposit per complete monthly/yearly period; default 0; simple mode requires 0 (USD; at most two decimal places) | |
| compoundingPerYear | No | Equal compounding periods per year, default 12 | |
| contributionTiming | No | Deposit at start or end of each complete period; default end | |
| contributionFrequency | No | Deposit interval, default monthly; fractional intervals have no deposit |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||