date_math
Calculate dates by adding or subtracting durations from a start date, or compute the difference between two dates, optionally counting business days only.
Instructions
Date arithmetic. Two modes: provide start + add (e.g. "+90 days", "-2 weeks") to compute the resulting date, OR provide start + end to compute the diff. Diff mode optionally counts business days only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | Relative duration like "+90 days", "-2 weeks", "next friday". | |
| end | No | Optional end date — when present, returns a diff instead. | |
| start | Yes | ISO 8601 / human-readable date. | |
| business_days | No |