pmt
Calculate the fixed amount to pay each period to repay a loan with interest from principal, annual rate, and number of periods, using exact decimal arithmetic.
Instructions
Level payment for a loan: the amount to pay each period so that the principal is repaid with interest over the given number of periods. Exact decimal arithmetic.
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>",
"periods": "<periods>"
},
"name": "pmt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | 0 = pay at period end (default), 1 = at the start. | |
| periods | Yes | ||
| principal | Yes | ||
| future_value | No | Balloon left unpaid at the end (default 0). | |
| annual_rate_pct | No | Nominal annual rate in percent, e.g. 6 for 6%. | |
| periods_per_year | No | Payments per year (12 = monthly). |