Home › Everyday Life › Count Portugal Working Days
Count Portugal Working Days
Counts authority-scope working and non-working dates in a range.
When to use
You need an auditable Portugal working-day count.
Do not use when: Mandatory nationwide list only. Municipal, autonomous-region, collective-agreement, employer and locally substituted holiday schedules are not inferred.
Example user requests
- Count Portugal working days around Portugal Day.
- Count Portugal working days around Ordinary weekday.
Formula
for each included date: working_days += status.is_working_day
Normalize endpoints and count exact authority events over the declared weekday baseline.
Inputs
| Parameter | Type | Unit | Required | Description |
|---|---|---|---|---|
start_date | date | yes | First date in 2026-2027. | |
end_date | date | yes | Last date in 2026-2027. | |
include_start_date | boolean | default true | Whether start_date participates. | |
include_end_date | boolean | default true | Whether end_date participates. |
Outputs
| Output | 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 | PT (Portugal). | |
territory_name | string | Portugal | |
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 | Portugal nationwide mandatory public holidays for 2026-2027 | |
holiday_policy | string | Portugal Labour Code mandatory national holidays are included; Carnival Tuesday and municipal holidays are optional and are not inferred. | |
substitute_day_policy | string | No substitute-day closure is inferred. Good Friday may be observed on another locally significant Easter-period day under the Labour Code, but no local replacement is selected. | |
calendar_profile | string | portugal-public-holidays | |
dataset_version | string | pt-statutory-public-holidays-2026-2027.1 | |
sources | list | Authority and legislation sources. |
Example
Coverage starts with a published event: {"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/portugal-public-working-days-between?start_date=2026-01-01&end_date=2026-01-01&include_start_date=true&include_end_date=true
Machine access
- API:
GET https://tttkmbb.com/api/v1/calculate/portugal-public-working-days-between(query parameters) orPOSTwith a JSON body{"inputs": {...}} - Schema: https://tttkmbb.com/api/v1/calculators/portugal-public-working-days-between · Markdown: https://tttkmbb.com/everyday/portugal-public-working-days-between.md · JSON definition: https://tttkmbb.com/everyday/portugal-public-working-days-between.json
- MCP: server
https://tttkmbb.com/mcp, toolrun_calculator with calculator_id="portugal-public-working-days-between" - OpenAPI operationId:
count_pt_working_days - Freshness:
static. Authentication: none. Rate limit: fair use (see rate limits).
Sources
- Diário da República – Código do Trabalho Article 234 (government_legal_text)
- Diário da República – Law 8/2016 restoring national holidays (government_legal_text)
- DGERT – Labour Code and regulations (government_labour_guidance)
- Boletim do Trabalho e Emprego 10/2026 (government_labour_bulletin)
FAQ
Does this include Carnival Tuesday or Lisbon municipal day?
No. Portuguese law treats Carnival Tuesday and the municipal holiday as optional through collective regulation or contract; this package includes only the mandatory nationwide list.
Related calculators
- Portugal Working Day — Inspect a date and source evidence.