Compute a deadline with explicit counting rules
compute_deadlineCompute a deadline from a start date and a period in calendar days, working days, Gregorian months or Hijri months, applying the counting rules YOU specify (exclude start day, extend past weekends/holidays, half-day handling, estimated-holiday handling). Returns the deadline, the raw date before extension, every skipped day and a step-by-step explanation. Use when drafting contract, notice, appeal or payment deadlines in the UAE. This is date arithmetic only; it does not state what any law requires, and every response carries a disclaimer field. Example: {start_date:'2026-11-26', period:7, unit:'calendar_days', emirate:'federal', sector:'public'} → raw 2026-12-03 (National Day, estimated) → deadline 2026-12-04, data_confidence 'medium'. Response always includes data_confidence ('high' = all dates officially announced/confirmed, 'medium' = something is estimated), estimated_items[], sources[] (official URLs) and data_version.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes | calendar_days | working_days | months (Gregorian) | hijri_months. | |
| rules | No | Counting conventions. Pass what the contract/rule says; defaults are the common convention. | |
| period | Yes | Length of the period in `unit`. Negative counts backwards. | |
| sector | No | Sector: public (government) | private. Government employees, courts and ministries → 'public'. Companies → 'private' (weekend is employer-set; the common Sat–Sun default is used and flagged). | public |
| emirate | No | Calendar profile emirate: federal | abu_dhabi | dubai | sharjah | ajman | umm_al_quwain | ras_al_khaimah | fujairah. Use 'federal' unless the user named an emirate's government. Emirates other than Sharjah currently follow the federal weekend. | federal |
| start_date | Yes | ISO date the period starts from (e.g. date of notification). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||