Compound Interest
compound-interestCompound growth at any frequency, with an optional contribution each period (paid at period end). Generalizes future-value (periodsPerYear 1) and contributions (periodsPerYear 12).
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>",
"annualRatePct": "<annualRatePct>",
"years": "<years>"
},
"name": "compound-interest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| years | Yes | Number of years. | |
| principal | Yes | Starting amount. | |
| annualRatePct | Yes | Annual growth rate in percent. | |
| periodsPerYear | No | Compounding periods per year (default 1). | |
| contributionPerPeriod | No | Optional. Amount added each period (default 0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | Result value. |