Compute Deadline
compute_deadlineCompute statutory FOI/OIA deadlines by counting working or calendar days from a start date. Deterministic calculation with no external dependencies.
Instructions
Compute a statutory FOI/OIA deadline from a start date and day count using the bleeding-edge fyi-core deadline engine. Use for local working-day or calendar-day deadline math; do not use for listing requests (list_requests) or sync health (sync_monitor). Read-only and idempotent; pure calculation with no database or network access. Returns a StatutoryDeadline JSON object (start_date, due_date, statutory_deadline_days, working_day_rule).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | Number of statutory days to count after start_date (working days by default). | |
| calendar | No | When true, count calendar days including weekends; when false/omitted, count weekdays only (Mon–Fri). | |
| start_date | Yes | Inclusive statutory period start date in YYYY-MM-DD (typically submission/receipt day). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| due_date | Yes | Computed due date (YYYY-MM-DD). | |
| start_date | Yes | Start date echoed from input (YYYY-MM-DD). | |
| instance_id | No | ||
| working_day_rule | Yes | Rule applied: weekdays_only or calendar_days. | |
| statutory_deadline_days | Yes | Day count used in the calculation. |