# Add Global Reference Working Days

> Adds or subtracts working days using the pinned OpenWorkdays national-scope reference for 246 country/territory codes.

- Calculator id: `global-reference-add-working-days` · Category: Everyday Life (`everyday`) · Tool name: `add_global_reference_working_days`
- Canonical page: https://tttkmbb.com/everyday/global-reference-add-working-days · This document: https://tttkmbb.com/everyday/global-reference-add-working-days.md · JSON definition: https://tttkmbb.com/everyday/global-reference-add-working-days.json

## Purpose

Adds or subtracts working days using the pinned OpenWorkdays national-scope reference for 246 country/territory codes.

**Use when:** You need a broad 2026-2028 date offset and accept OpenWorkdays reference semantics, including its source observed/estimated flags.

**Do not use when:** The task requires a direct official authority, regional/local or employer calendar, or dates outside published coverage.

## Example user requests

- Add five broad-reference working days to 2026-10-23 in Australia.


## Input

| Parameter | Type | Unit | Required | Description |
| --- | --- | --- | --- | --- |
| `start_date` | date |  | required | Gregorian start date in 2026-2028. |
| `territory` | enum: AD \| AE \| AF \| AG \| AI \| AL \| AM \| AO \| AR \| AS \| AT \| AU \| AW \| AX \| AZ \| BA \| BB \| BD \| BE \| BF \| BG \| BH \| BI \| BJ \| BL \| BM \| BN \| BO \| BQ \| BR \| BS \| BT \| BW \| BY \| BZ \| CA \| CC \| CD \| CF \| CG \| CH \| CI \| CK \| CL \| CM \| CN \| CO \| CR \| CU \| CV \| CW \| CX \| CY \| CZ \| DE \| DJ \| DK \| DM \| DO \| DZ \| EC \| EE \| EG \| EH \| ER \| ES \| ET \| FI \| FJ \| FK \| FM \| FO \| FR \| GA \| GB \| GD \| GE \| GF \| GG \| GH \| GI \| GL \| GM \| GN \| GP \| GQ \| GR \| GS \| GT \| GU \| GW \| GY \| HK \| HN \| HR \| HT \| HU \| ID \| IE \| IL \| IM \| IN \| IQ \| IR \| IS \| IT \| JE \| JM \| JO \| JP \| KE \| KG \| KH \| KI \| KM \| KN \| KP \| KR \| KW \| KY \| KZ \| LA \| LB \| LC \| LI \| LK \| LR \| LS \| LT \| LU \| LV \| LY \| MA \| MC \| MD \| ME \| MF \| MG \| MH \| MK \| ML \| MM \| MN \| MO \| MP \| MQ \| MR \| MS \| MT \| MU \| MV \| MW \| MX \| MY \| MZ \| NA \| NC \| NE \| NF \| NG \| NI \| NL \| NO \| NP \| NR \| NU \| NZ \| OM \| PA \| PE \| PF \| PG \| PH \| PK \| PL \| PM \| PN \| PR \| PS \| PT \| PW \| PY \| QA \| RE \| RO \| RS \| RU \| RW \| SA \| SB \| SC \| SD \| SE \| SG \| SH \| SI \| SJ \| SK \| SL \| SM \| SN \| SO \| SR \| SS \| ST \| SV \| SX \| SY \| SZ \| TC \| TD \| TF \| TG \| TH \| TJ \| TK \| TL \| TM \| TN \| TO \| TR \| TT \| TV \| TW \| TZ \| UA \| UG \| UM \| US \| UY \| UZ \| VA \| VC \| VE \| VG \| VI \| VN \| VU \| WF \| WS \| XK \| YE \| YT \| ZA \| ZM \| ZW |  | required | ISO-style alpha-2 country code supported by the pinned OpenWorkdays reference snapshot. |
| `working_days` | integer | working days | required | Signed offset; the start date is excluded for non-zero offsets. (min -1000, max 1000) |

## Output

| Field | Type | Unit | Description |
| --- | --- | --- | --- |
| `start_date` | date |  | Input date. |
| `result_date` | date |  | Date reached. |
| `working_days_added` | integer | working days | Signed requested offset. |
| `calendar_days_elapsed` | integer | days | Signed Gregorian difference. |
| `non_working_weekend_days_skipped` | integer | days | Regular weekend dates crossed. |
| `public_holidays_skipped` | list |  | Source public-holiday events crossed. |
| `territory` | string |  | Normalized uppercase country code. |
| `territory_name` | string |  | Calcgrid display name; TW is displayed as 中国台湾省 while the machine code remains TW. |
| `source_territory_name` | string |  | Raw country name from the hash-pinned OpenWorkdays source catalogue. |
| `weekend_days` | string_list |  | Weekend convention supplied by the source country file. |
| `working_weekend_day` | boolean |  | True when the source explicitly marks a weekend date as an official working day. |
| `holiday_names` | string_list |  | Included national-scope public-holiday names on the date. |
| `holiday_observed` | boolean |  | True when an included event is marked observed by the source. |
| `holiday_estimated` | boolean |  | True when an included event is marked estimated by the source. |
| `holiday_policy` | string |  | National-scope events with source observed/estimated flags preserved. |
| `calendar_scope` | string |  | National reference plus country weekend and explicit working-weekend dates. |
| `calendar_profile` | string |  | global-working-day-reference. |
| `substitute_day_policy` | string |  | Source flags are preserved; no new substitute-day rule is inferred. |
| `source_quality` | string |  | Open derived reference, not a direct national authority feed. |
| `dataset_version` | string |  | Pinned OpenWorkdays snapshot version. |
| `coverage_start` | date |  | First supported date. |
| `coverage_end` | date |  | Last supported date. |
| `source_url` | string |  | Pinned OpenWorkdays source index. |

## Formula

`move one Gregorian day at a time; decrement remaining only when the source reference status is_working_day=true`

The start date is excluded for non-zero offsets. Skip source weekends and public-holiday events; preserve source flags in the result.

## Data Sources

- OpenWorkdays generated public-holiday and working-day data — https://openworkdays.com/api/v1/countries.json (open_derived_reference, retrieved 2026-09-28)

Data freshness: `static`. Pinned OpenWorkdays 2026-2028 snapshot.

## API

- `GET https://tttkmbb.com/api/v1/calculate/global-reference-add-working-days?start_date=…&territory=…&working_days=…`
- `POST https://tttkmbb.com/api/v1/calculate/global-reference-add-working-days` with JSON body `{"inputs": {…}}`
- Response: unified envelope (`success`, `request`, `result.values`, `result.units`, `sources`, `freshness`, `timestamp`, `next_actions`, `links`); see https://tttkmbb.com/docs/response-format.md
- Schema: https://tttkmbb.com/api/v1/calculators/global-reference-add-working-days · OpenAPI operationId `add_global_reference_working_days` in https://tttkmbb.com/openapi.json
- Authentication: none. Rate limit: fair use, see https://tttkmbb.com/docs/rate-limits.md.

## MCP

- Server: `https://tttkmbb.com/mcp` (Streamable HTTP, JSON-RPC 2.0, no auth)
- Tool: `add_global_reference_working_days` (dedicated) or `run_calculator` with `{"calculator_id": "global-reference-add-working-days", "inputs": {…}}`

## Example

- Australia offset: inputs `{"start_date":"2026-10-23","territory":"AU","working_days":5}` → `{"result_date":"2026-10-30"}`

```
GET https://tttkmbb.com/api/v1/calculate/global-reference-add-working-days?start_date=2026-10-23&territory=AU&working_days=5
```

## Limitations

The task requires a direct official authority, regional/local or employer calendar, or dates outside published coverage. The start date is excluded for non-zero offsets. Skip source weekends and public-holiday events; preserve source flags in the result. All values are computed from the formula above; no measurement or live data is involved.

## FAQ

**What if the offset crosses the snapshot boundary?**

The call fails with OUT_OF_RANGE rather than extrapolating.

**Are regional closures included?**

This is a broad national-scope reference generated from an open rules-based library. It may omit regional, employer, bank, exchange, school or one-off authority closures, and future lunar/late-proclaimed dates can be marked estimated. Verify material legal, payroll, banking or settlement decisions against the responsible authority.

## Related

- [Global Working Day Reference](https://tttkmbb.com/everyday/global-reference-working-day.md) — Inspect the source-labelled status of one date.
- [Count Global Reference Working Days](https://tttkmbb.com/everyday/global-reference-working-days-between.md) — Count reference working days in a range.
