# Count Spain Working Days

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

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

## Purpose

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

**Use when:** You need an auditable Spain working-day count.

**Do not use when:** The remaining national, autonomous-community, Ceuta/Melilla and up to two municipal local holidays require a jurisdiction-specific calendar.

## Example user requests

- Count Spain working days around National Day.
- Count Spain working days around Ordinary weekday.


## Input

| Parameter | Type | Unit | Required | Description |
| --- | --- | --- | --- | --- |
| `start_date` | date |  | required | First date in 2026-2026. |
| `end_date` | date |  | required | Last date in 2026-2026. |
| `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 |  | ES (Spain). |
| `territory_name` | string |  | Spain |
| `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 |  | Spain nationwide national non-substitutable labour holidays for 2026 |
| `holiday_policy` | string |  | Only national non-substitutable holidays from the BOE calendar are included; autonomous-community and local holidays are not inserted. |
| `substitute_day_policy` | string |  | Autonomous-community substitution choices and local compensatory arrangements are not inferred. |
| `calendar_profile` | string |  | spain-national-holidays |
| `dataset_version` | string |  | es-national-holidays-2026.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

- BOE – Resolution of 17 October 2025: 2026 labour holidays — https://www.boe.es/diario_boe/txt.php?id=BOE-A-2025-21667 (government_calendar_reference)
- BOE – Royal Decree 2001/1983 — https://www.boe.es/buscar/act.php?id=BOE-A-1983-20906&lang=es&p=&tn=1 (government_law)
- Ministry of Labour and Social Economy – labour guide — https://www.mites.gob.es/es/Guia/texto/guia_6/index_2023.htm (government_guidance)

Data freshness: `static`. Pinned es-national-holidays-2026.1 package.

## API

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

## Example

- Coverage starts with a published event: inputs `{"start_date":"2026-01-01","end_date":"2026-01-01","include_start_date":true,"include_end_date":true}` → `{"working_days":0,"non_working_days":1}`

```
GET https://tttkmbb.com/api/v1/calculate/spain-national-working-days-between?start_date=2026-01-01&end_date=2026-01-01&include_start_date=true&include_end_date=true
```

## Limitations

The remaining national, autonomous-community, Ceuta/Melilla and up to two municipal local holidays require a jurisdiction-specific calendar. 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 answer every Spanish region and municipality?**

No. It is the nationwide non-substitutable subset only; autonomous-community, Ceuta/Melilla and local holidays require a jurisdiction-specific official calendar.

## Related

- [Spain Working Day](https://tttkmbb.com/everyday/spain-national-working-day.md) — Inspect a date and source evidence.
