Accrued interest
accrued_interestCompute exact simple accrued interest between two dates using notional, annual rate, and chosen day-count convention. Eliminates guesswork with deterministic results.
Instructions
Exact simple accrued interest (notional * rate * day-count fraction) between two dates. Dates are ISO YYYY-MM-DD; rate is the annual rate as a decimal (0.05 = 5%). Deterministic.
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": {
"notional": "<notional>",
"rate": "<rate>",
"start": "<start>",
"end": "<end>",
"convention": "<convention>"
},
"name": "accrued_interest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notional | Yes | Face / principal amount. | |
| rate | Yes | Annual rate as a decimal, e.g. 0.05 for 5%. | |
| start | Yes | ISO calendar date, YYYY-MM-DD (e.g. 2024-03-15). Zero-padded, no time or timezone. | |
| end | Yes | ||
| convention | Yes | Day-count convention, e.g. ACT/ACT ISDA or 30/360. | |
| endIsTermination | No | 30E/360 ISDA only: true if the end date is the instrument's maturity date. |