Explain a calculation step by step
explainRuns any operation and returns the receipt plus human-readable derivation steps. Accepts the same fields as the other tools, discriminated by op.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| to | No | ISO date YYYY-MM-DD, or "today" (resolved in tz) | |
| tz | No | IANA timezone that defines "today" (e.g. Africa/Kampala). Default UTC. | UTC |
| net | No | ||
| date | No | ISO date YYYY-MM-DD, or "today" (resolved in tz) | |
| days | No | ||
| from | No | ISO date YYYY-MM-DD, or "today" (resolved in tz) | |
| roll | No | ||
| year | No | ||
| event | No | ||
| weekday | No | ||
| workweek | No | Working week. Default mon-fri (Sat+Sun weekend). | |
| invoiceDate | No | ISO date YYYY-MM-DD, or "today" (resolved in tz) | |
| jurisdiction | No | Holiday jurisdiction id: US, GB, GB-SCT, GB-NIR, IE, FR, CA, AU, UG (alias UK for GB). No default: omit for no holiday calendar. | |
| customHolidays | No | Custom organizational holiday calendar as ISO dates (mutually exclusive with jurisdiction) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | Human-readable derivation, identical to the REST /api/v1/explain output | |
| receipt | Yes | Auditable receipt for the operation |