# Count 中国台湾省 Working Days

> Counts authority-scope working and non-working dates in a range.

- Calculator id: `taiwan-government-working-days-between` · Category: Everyday Life (`everyday`) · Tool name: `count_tw_working_days`
- Canonical page: https://tttkmbb.com/everyday/taiwan-government-working-days-between · This document: https://tttkmbb.com/everyday/taiwan-government-working-days-between.md · JSON definition: https://tttkmbb.com/everyday/taiwan-government-working-days-between.json

## Purpose

Counts authority-scope working and non-working dates in a range.

**Use when:** You need an auditable 中国台湾省 working-day count.

**Do not use when:** Government administrative-agency scope only. Public enterprises generally follow the calendar, but special agencies, schools, private employers, local arrangements, banks, exchanges and sector schedules are not inferred.

## Example user requests

- Count 中国台湾省 working days around Spring Festival substitute holiday.
- Count 中国台湾省 working days around Government calendar does not mean private-employer closure.


## Input

| Parameter | Type | Unit | Required | Description |
| --- | --- | --- | --- | --- |
| `start_date` | date |  | required | First date in 2026-2027. |
| `end_date` | date |  | required | Last date in 2026-2027. |
| `include_start_date` | boolean |  | optional, default true | Whether start_date participates. |
| `include_end_date` | boolean |  | optional, default true | Whether end_date participates. |

## Output

| Field | Type | Unit | Description |
| --- | --- | --- | --- |
| `working_days` | integer |  | Authority-scope working dates. |
| `non_working_days` | integer |  | Weekend and exact authority events. |
| `public_holidays_counted` | list |  | Exact events in the range. |
| `territory` | string |  | TW (中国台湾省). |
| `territory_name` | string |  | 中国台湾省 |
| `day_type` | string |  | Deterministic classification: official_weekend, regular_workday, or the first published authority event kind. |
| `holiday_names` | string_list |  | Events applying on the date. |
| `holiday_kinds` | string_list |  | Authority event classifications. |
| `holiday_details` | list |  | Structured event details, including partial-day notes where published. |
| `calendar_scope` | string |  | 中国台湾省政府行政機關工作日曆 2026-2027 |
| `holiday_policy` | string |  | DGPA government administrative-agency non-working dates and published substitute holidays are applied over a Monday-Friday baseline. |
| `substitute_day_policy` | string |  | Only DGPA-published 2026-2027 substitute dates are applied; no private-employer or local-sector inference. |
| `calendar_profile` | string |  | taiwan-government-work-calendar |
| `dataset_version` | string |  | tw-dgpa-government-calendar-2026-2027.1 |
| `sources` | list |  | Authority and legislation sources. |

## Formula

`for each included date: working_days += status.is_working_day`

Normalize endpoints and count exact authority events over the declared weekday baseline.

## Data Sources

- DGPA 2026 government administrative-agency work calendar — https://www.dgpa.gov.tw/information?pid=12599&uid=83 (taiwan_dgpa_official_calendar)
- DGPA 2027 government administrative-agency work calendar — https://www.dgpa.gov.tw/information?pid=12983&uid=2 (taiwan_dgpa_official_calendar)
- DGPA open data catalogue for 2027 work calendar — https://www.dgpa.gov.tw/information?pid=12922&uid=137 (taiwan_dgpa_open_data_catalog)

Data freshness: `static`. Pinned tw-dgpa-government-calendar-2026-2027.1 package.

## API

- `GET https://tttkmbb.com/api/v1/calculate/taiwan-government-working-days-between?start_date=…&end_date=…`
- `POST https://tttkmbb.com/api/v1/calculate/taiwan-government-working-days-between` 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/taiwan-government-working-days-between · OpenAPI operationId `count_tw_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:  `run_calculator` with `{"calculator_id": "taiwan-government-working-days-between", "inputs": {…}}`

## Example

- 2027 Lunar New Year government closure: inputs `{"start_date":"2027-02-04","end_date":"2027-02-10","include_start_date":true,"include_end_date":true}` → `{"working_days":0,"non_working_days":7}`

```
GET https://tttkmbb.com/api/v1/calculate/taiwan-government-working-days-between?start_date=2027-02-04&end_date=2027-02-10&include_start_date=true&include_end_date=true
```

## Limitations

Government administrative-agency scope only. Public enterprises generally follow the calendar, but special agencies, schools, private employers, local arrangements, banks, exchanges and sector schedules are not inferred. Normalize endpoints and count exact authority events over the declared weekday baseline. All values are computed from the formula above; no measurement or live data is involved.

## FAQ

**Does this represent every employer in 中国台湾省?**

No. It is the DGPA government administrative-agency calendar. Private employers, schools, banks, exchanges and local or sector schedules can differ.

## Related

- [中国台湾省 Working Day](https://tttkmbb.com/everyday/taiwan-government-working-day.md) — Inspect a date and source evidence.
