Working days calculator with public holidays
Working days between two dates, or the date a number of working days away, leaving out weekends and a country's public holidays.
- Version 1
- Checked against 1 published value
- Free, no sign-up
Result: US federal working days in July 2026
| Working days Working days from start to end; negative when end is before start. |
22 |
|---|
Holidays skipped
| Date | Weekday | Name |
|---|---|---|
| 2026-07-03 | Friday | Independence Day (observed) |
Calculator date/working-days@1.
How it is calculated
days in the span that are not a weekend day, a public holiday of the calendar or an extra holidayCounts the working days between two dates, or finds the date that lies a number of working days after (or before) a start date. Weekends and the public holidays of the chosen country or region are left out, and you can add your own closing days. The answer lists the holidays it skipped, so the count can be checked by hand.
- Holiday calendars cover 2020 to 2030. They follow the rules in each country's law, plus the one-off days that were proclaimed for a single year. A government can still add or move a day for a year ahead; such a change is added here when it becomes law.
- Holidays that apply only in some towns or districts are not included (for example Assumption Day in most of Bavaria, Corpus Christi in parts of Saxony and Thuringia, and Good Friday in Alsace-Moselle).
References
- 5 U.S.C. 6103, as listed by the US Office of Personnel Management
- GOV.UK: UK bank holidays
- Germany: the Unification Treaty (3 October) and each state's public holiday act (Feiertagsgesetz), as summarised by the Federal Ministry of the Interior
Results follow each calculator's documented rules and the sources listed. They are not financial, tax or legal advice. Check that the rules fit your case before you rely on a result. See the terms.
Use it from your code
curl https://api.curatedapi.com/v1/calc/date/working-days \
-H "Authorization: Bearer $CURATEDAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"start": "2026-07-01",
"end": "2026-07-31",
"calendar": "US",
"include_end_date": true
}'
The same call in Python
import os
import requests
payload = {
"start": "2026-07-01",
"end": "2026-07-31",
"calendar": "US",
"include_end_date": True,
}
response = requests.post(
"https://api.curatedapi.com/v1/calc/date/working-days",
headers={"Authorization": f"Bearer {os.environ['CURATEDAPI_KEY']}"},
json=payload,
timeout=10,
)
print(response.json()["result"])
The same call in JavaScript
const payload = {
"start": "2026-07-01",
"end": "2026-07-31",
"calendar": "US",
"include_end_date": true,
};
const response = await fetch("https://api.curatedapi.com/v1/calc/date/working-days", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.CURATEDAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify(payload),
});
console.log((await response.json()).result);
MCP tool calc_date_working_days at https://mcp.curatedapi.com.
Inputs, outputs and errors in the API reference.
Put it on your website
<div data-curatedapi-widget="date/working-days" data-key="capi_public_…"></div>
<script src="https://widgets.curatedapi.com/v1/widget.js" async></script>
Use a public key registered for your site. Calculations are billed like API calls. How widgets work.
Related calculators
- Add or subtract time from a date
- Age calculator
- Date difference calculator
- Public holidays by country and year
- Time zone converter
- Working hours and SLA deadline calculator
Add this calculator to your website
Paste two lines into your page and your visitors get this calculator. Each use counts as one call on your plan, the same as the API.
Free for up to 1,000 uses a month. 50,000 uses a month cost $9.00 on the Starter plan.