Business days between dates, working days calculator: count working days between two dates, skipping weekends and public holidays
No account. Pay by card from $1 and your key appears right after payment. Get a key by card
Count business (working) days between two dates, skipping weekends and the nationwide public holidays of over 100 countries (our statutory rules for US, UK, SE, DE, FR, NO, DK, FI; Nager.Date for the rest, e.g. JP, NZ, CA, AU, IN), and list the holidays skipped; or give add=N for the date N business days after (or before) a date. Use for delivery estimates, SLAs, payment terms and payroll dates.
Guide: Public holidays API
$0.001 per call with prepaid credits: $1 by card pays for 1,000 calls, with no account and no subscription.
Inputs
| Name | Type | Description |
|---|---|---|
from (required) | string | Start date, YYYY-MM-DD |
to | string | End date, YYYY-MM-DD (inclusive; default: the last day of the start month); or use add |
add | integer | Business days to add to from (negative to go back), instead of to |
country | string | Holiday calendar: a 2-letter country code or English name, e.g. SE, JP, New Zealand (default: weekends only) |
Request
Over HTTP, with a card key from /credits:
curl -H "Authorization: Bearer adt_…" "https://glyphtools.com/date/business-days?from=2026-12-01"
Node.js
const r = await fetch("https://glyphtools.com/date/business-days?from=2026-12-01", {
headers: { Authorization: "Bearer adt_…" },
});
const data = await r.json(); // 402 until the key is in the header
Python
import requests
r = requests.get("https://glyphtools.com/date/business-days?from=2026-12-01", headers={"Authorization": "Bearer adt_…"}, timeout=60)
data = r.json()
Or one of your 3 free calls, no key — the same request with &trial=1 on the end:
curl "https://glyphtools.com/date/business-days?from=2026-12-01&trial=1"
Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.
Example result
{
"from": "2026-12-01",
"to": "2026-12-31",
"country": "SE",
"holidayRules": true,
"holidaySource": "rules",
"calendarDays": 31,
"businessDays": 20,
"weekendDays": 8,
"holidays": [
{
"date": "2026-12-24",
"name": "Christmas Eve"
}
]
}
From an AI agent (MCP)
Add the MCP server to Claude, Cursor or any MCP client. This tool is date_business_days, and the first 10 successful calls are free:
https://glyphtools.com/mcp