x402AgentTools

💼Business Days Calculator

Count business days (Mon–Fri) between two dates, with weekend and holiday breakdown. Provide a country code and real public holidays (via Nager.Date) are excluded too.

Worked examples

September 2026, no holidays

GET /api/v1/live/business-days?start=2026-09-01&end=2026-09-30

Result: 22 business days

Q4 2026 in Germany (holidays excluded)

GET /api/v1/live/business-days?start=2026-10-01&end=2026-12-31&country=DE

Result: 64 business days

US December (holidays excluded)

GET /api/v1/live/business-days?start=2026-12-01&end=2026-12-31&country=US

Result: 22 business days

Machine API (x402)

$0.001 / call

This tool is also a JSON API for AI agents. Requests without payment receive 402 Payment Required plus instructions; agents pay USDC on Base via the x402 protocol — no accounts, no API keys.

GET /api/v1/live/business-days?start=2026-09-01&end=2026-09-30 HTTP/1.1
Host: agenttools-hub.vercel.app

→ 402 (payment required, instructions in headers)
→ 200 (after X-PAYMENT header; JSON body below)

{
  "tool": "live/business-days",
  "input": {"start":"2026-09-01","end":"2026-09-30"},
  "result": { "value": 22, "answer": "22 business days" }
}

Agent docs: /llms.txt · OpenAPI spec · integration guide

About this tool

Counts Monday–Friday business days between two dates, inclusive. Add a two-letter country code and real public holidays (from Nager.Date, ~110 countries) are excluded as well — the difference between '10 working days' and a missed SLA.

business days = calendar days (inclusive) − weekend days − public holidays

Frequently asked questions

Is the end date included?

Yes — both start and end dates are included when they fall on business days.

Where does the holiday data come from?

Nager.Date, a free public-holidays API covering ~110 countries, cached for 12 hours. If the holiday service is unreachable, weekends-only counting still works.

Related tools