80trust / 100
Date Business Days
by Tanod utilpeek in Weather & location
x402 APIPassing, checked 3 h ago
utilpeek (Tanod) business days: count working days between two dates or add N working days, with custom weekends and public holidays for 250 countries.
POST https://tanod.dev/v1/date/business-days
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 270 ms typical, 278 ms slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://tanod.dev/v1/date/business-days" \
-H "content-type: application/json" \
-d '{"country":"US","end":"2027-01-08","mode":"count","start":"2026-12-21"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftanod.dev%2Fv1%2Fdate%2Fbusiness-days
const res = await pay("https://tanod.dev/v1/date/business-days", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"country":"US","end":"2027-01-08","mode":"count","start":"2026-12-21"}),
});
console.log(await res.json());Example input
{
"country": "US",
"end": "2027-01-08",
"mode": "count",
"start": "2026-12-21"
}Example output
{
"business_days": 13,
"calendar_days": 19,
"counting": "Both start and end are counted when they are business days (like Excel NETWORKDAYS).",
"country": "US",
"end": "2027-01-08",
"holiday_days": 2,
"holidays_skipped": [
{
"date": "2026-12-25",
"name": "Christmas Day",
"weekday": "Friday"
},
{
"date": "2027-01-01",
"name": "New Year's Day",
"weekday": "Friday"
}
],
"holidays_truncated": false,
"include_end": true,
"include_start": true,
"mode": "count",
"note": "Rules-based computation (no official calendar is consulted): public holidays as modelled by the library, including observed/substitute days. Lunar, religious and one-off holidays can be estimates or missing for some years; confirm with an official source for legal or payroll use.",
"source": {
"library": "python-holidays 0.106",
"license": "MIT",
"url": "https://github.com/vacanza/holidays"
},
"start": "2026-12-21",
"start_is_business_day": true,
"subdivision": null,
"weekend": [
"sat",
"sun"
],
"weekend_days": 4
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 271 ms | $0.001 |
| 7 h ago | Passed | 402 | 270 ms | $0.001 |
| 11 h ago | Passed | 402 | 581 ms | $0.001 |
| 14 h ago | Passed | 402 | 278 ms | $0.001 |
| 18 h ago | Passed | 402 | 263 ms | $0.001 |
| 21 h ago | Passed | 402 | 261 ms | $0.001 |
| 25 h ago | Passed | 402 | 266 ms | $0.001 |
| 30 h ago | Passed | 402 | 275 ms | $0.001 |