Skip to content

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
Count and add
calendar.business-days counts business days in [startDate, endDate) or adds a signed number of business days to a date.
Deadlines in days or hours
calendar.deadline takes a start instant, an IANA time zone, a daily cutoff and opening time, and returns the due instant in UTC.
Your own calendar
Choose which weekdays are closed and add company closures. Every skipped date comes back with its reason.

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.

Request · POST /v1/calendar/deadline
{
  "country": "US",
  "subdivision": "US-NY",
  "start": "2026-11-25T21:30:00Z",
  "hours": 2,
  "timezone": "America/New_York",
  "cutoff": "17:00",
  "closures": [
    "2026-11-27"
  ]
}
Response · 200
{
  "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.

$0.001/call

No key needed · 10 free calls per IP per day

Response

Run the request to see the live response here.

Reference

Operations

OperationPrice
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:

ApproachWhat you take on
Hard-coded holiday listsUpdate them every year for every country you serve, and miss observed substitutes.
A holiday library in each serviceKeep versions in sync across services and write the cutoff and opening-hours logic yourself.
KanaguOne 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

$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.

10 free calls a day
Start without a key
Try every call above for free. When it works, sign in for a key with $1 of usage free every month.

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