Business days and deadlines with real public holidays
Count or add business days for 207 countries and territories and 423 regions. Compute deadlines in local time with cutoffs, opening hours and your own closures, and see every date that was skipped and why.
$0.001/call · 10 free calls a day, no signup · REST and MCP
curl https://api.kanagu.dev/v1/calendar/deadline \
-H "Content-Type: application/json" \
-d '{"country":"US","subdivision":"US-NY","start":"2026-11-25T21:30:00Z","hours":2,"timezone":"America/New_York","cutoff":"17:00","closures":["2026-11-27"]}'const res = await fetch("https://api.kanagu.dev/v1/calendar/deadline", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.KANAGU_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"country": "US",
"subdivision": "US-NY",
"start": "2026-11-25T21:30:00Z",
"hours": 2,
"timezone": "America/New_York",
"cutoff": "17:00",
"closures": [
"2026-11-27"
]
}),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "calendar.deadline",
"arguments": {
"country": "US",
"subdivision": "US-NY",
"start": "2026-11-25T21:30:00Z",
"hours": 2,
"timezone": "America/New_York",
"cutoff": "17:00",
"closures": [
"2026-11-27"
]
}
}
}Why
What it solves
"Five business days" depends on the country, the region, the year and the company. Holiday lists go stale, observed substitutes are easy to miss, and deadlines in hours need opening times and time zones. Kanagu answers with a maintained calendar and tells you which days it skipped.
Built for
- Payments, logistics and support teams with SLAs in business days or hours
- Legal, HR and compliance tools that compute statutory deadlines
- AI agents that schedule follow-ups or promise delivery dates
Example
What goes in, what comes out
In: A country or region, a start date or instant, and days or hours. Out: A business-day count, a target date, or a deadline instant with the skipped dates.
{
"country": "US",
"subdivision": "US-NY",
"start": "2026-11-25T21:30:00Z",
"hours": 2,
"timezone": "America/New_York",
"cutoff": "17:00",
"closures": [
"2026-11-27"
]
}{
"due": "2026-11-30T15:30:00Z",
"skipped": [
{
"date": "2026-11-26",
"reasons": [
"public_holiday"
]
},
{
"date": "2026-11-27",
"reasons": [
"custom_closure"
]
},
{
"date": "2026-11-28",
"reasons": [
"weekend"
]
},
{
"date": "2026-11-29",
"reasons": [
"weekend"
]
}
]
}A 2-hour SLA started at 4:30 p.m. the day before Thanksgiving is due at 10:30 a.m. the next Monday.
Try it
Run it on the live API
The sample request is ready to run. No key needed for 10 calls a day.
Reference
Operations
| Operation | Price |
|---|---|
| calendar.business-days Count business days in [startDate, endDate) or add signed business days from startDate. Weekends and observed public holidays are excluded. | $0.001/call |
| calendar.deadline Calculate a deadline in local business days or hours and trace skipped dates. | $0.001/call |
curl https://api.kanagu.dev/v1/calendar/deadline \
-H "Authorization: Bearer $KANAGU_KEY" \
-H "Content-Type: application/json" \
-d '{"country":"US","subdivision":"US-NY","start":"2026-11-25T21:30:00Z","hours":2,"timezone":"America/New_York","cutoff":"17:00","closures":["2026-11-27"]}'const res = await fetch("https://api.kanagu.dev/v1/calendar/deadline", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.KANAGU_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"country": "US",
"subdivision": "US-NY",
"start": "2026-11-25T21:30:00Z",
"hours": 2,
"timezone": "America/New_York",
"cutoff": "17:00",
"closures": [
"2026-11-27"
]
}),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();claude mcp add --transport http kanagu https://api.kanagu.dev/mcp \
--header "Authorization: Bearer $KANAGU_KEY"{
"mcpServers": {
"kanagu": {
"url": "https://api.kanagu.dev/mcp",
"headers": {
"Authorization": "Bearer ${env:KANAGU_KEY}"
}
}
}
}{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "calendar.deadline",
"arguments": {
"country": "US",
"subdivision": "US-NY",
"start": "2026-11-25T21:30:00Z",
"hours": 2,
"timezone": "America/New_York",
"cutoff": "17:00",
"closures": [
"2026-11-27"
]
}
}
}Every field, error and schema is in the calendar.deadline reference.
Coverage
Limits and coverage
- Regions
- 207 countries and territories and 423 subdivisions, e.g. US-CA, DE-BY, GB-SCT
- Years
- 2020 to 2035
- Holidays
- Public holidays and observed substitutes from date-holidays 3.39.2, plus GOV.UK bank holidays for England and Wales, Scotland and Northern Ireland
- Weekend
- Saturday and Sunday by default; any weekdays with weekend on calendar.deadline
- License
- Holiday data under CC BY-SA 4.0 with upstream attributions
Compare
Compared with the usual approaches
Ways teams usually do business-day math:
| Approach | What you take on |
|---|---|
| Hard-coded holiday lists | Update them every year for every country you serve, and miss observed substitutes. |
| A holiday library in each service | Keep versions in sync across services and write the cutoff and opening-hours logic yourself. |
| Kanagu | One call at $0.001 with a maintained calendar, time zones, cutoffs and an explanation of every skipped day. |
Pricing
$0.001/call, billed only on success
- calendar.business-days$0.001 / call
- calendar.deadline$0.001 / call
$1 of usage free every month after sign-in. Then pay as you go with no monthly fee, or the $9/month Bundle with $9 of usage included, shared across every Kanagu product. Compare plans
Sign in, create a key and use $1 of calls free each month, no card needed. Subscribe from your dashboard when you need more. Polar is the merchant of record and handles payment, tax and invoices.
FAQ
Business days questions
- Which holidays count?
- Public holidays and their observed substitutes, including days classified as bank holidays, for the country or subdivision you pass. GB defaults to England and Wales.
- How does the cutoff work?
- In day mode, the first open day before cutoff is day zero and the deadline is the target day's cutoff. In hour mode, time accumulates between opening and cutoff. The cutoff is exclusive for starts.
- Can I add company holidays?
- Yes. Pass local dates in closures, and they are skipped with the reason custom_closure.
- What does a call cost?
- $0.001. A thousand deadline calculations cost $1.
More APIs with the same key
- E-invoicingGenerate, validate and parse XRechnung and ZUGFeRD invoices.
- France e-reportingDGFiP Flux 10 e-reporting XML for B2C sales, cross-border B2B and service receipts, checked against v3.2.
- Bank statementsTurn Chase, Wells Fargo and Barclays PDF statements into reconciled transactions.
- OTA payoutsMatch Airbnb, Booking.com and Vrbo payouts to the deposits on your bank statement.
- Rent rollsReconcile a multifamily rent roll against its T12: occupancy, loss to lease, vacancy and rent collected.
- Pay applicationsCheck AIA G702 and G703 pay applications line by line, against the last certified one and approved change orders.
- VAT validationCheck EU and UK VAT numbers against VIES and HMRC, with audit evidence.
- Packaging EPRPackaging weights by US state EPR category and Germany LUCID reports, traced to each SKU.
- CPSC eFilingCheck CPC and GCC certificates against each CBP entry line and get the PGA fields to file.
- PFAS reportingDecide Minnesota and Maine PFAS-in-products reporting and get the PRISM rows, MDA statements and deadlines.
- Demurrage auditAudit FMC demurrage and detention invoices against 46 CFR 541, recalculate each day and draft the dispute.
- UK CARFHMRC cryptoasset reports as OECD CARF XML, checked against HMRC's file rules and TIN check digits.
- EU PPWREU packaging regulation checks for heavy metals, PFAS, recycled content and empty space, with a draft declaration.
- SEC fundamentalsPoint-in-time SEC XBRL financials with every restatement, for backtests without look-ahead.
- CSV validationCheck uploaded CSV files against a column schema before you import them.
- Email parsingParse raw .eml messages into headers, bodies, attachments and thread IDs.
- Screenshot diffCapture two web pages and get the changed pixels and regions.