date_calc
Exact calendar maths. With end: days between two dates (plus weeks, months+days, weekdays Mon-Fri, weekend days). With add_days/add_weeks/add_months/add_years (negative to subtract): the resulting date and weekday; business_days=true skips weekends. Use this instead of counting days yourself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | YYYY-MM-DD | |
| start | No | YYYY-MM-DD (default: today in timezone) | |
| add_days | No | ||
| timezone | No | IANA zone used for today when start is omitted (default UTC) | |
| add_weeks | No | ||
| add_years | No | ||
| add_months | No | ||
| include_end | No | Count the end date too (default false) | |
| business_days | No | add_days counts Monday-Friday only |