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.
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. |