{"uid":"cap_NLBM-ADuHVYhb4_lHcSU2","slug":"agent402-business-day-counter-static-holidays-0b56979b","name":"Agent402 Business Day Counter (Static Holidays)","description":"Don't burn tokens on deterministic work. Go/no-go jobs first: payout preflight, text firewall (PII/secrets), budget check — then rails, calendars, finmath. x402 USDC on Base. UK + global. agent402.co.uk — not agent402.tools. $0.001–$0.002 USDC on Base. No API keys.","url":"https://agent402.co.uk/v1/time/business-days-static","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["start","end","country"],"properties":{"end":{"type":"string","description":"YYYY-MM-DD"},"start":{"type":"string","description":"YYYY-MM-DD"},"country":{"type":"string","description":"US|DE|FR|IE|JP|AU|SG"},"exclude_holidays":{"type":"string","description":"default true"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"valid":true,"country":"US","business_days":19}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ahAHSVLptnHz266DbTFHN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Counts pure business days between two dates for a given country, excluding weekends and static public holidays, across US/DE/FR/IE/JP/AU/SG.","exampleAgentPrompt":"How many business days are there between March 3, 2025 and April 25, 2025 in the US, excluding holidays?","exampleUseCases":[{"title":"SLA deadline calculation for contracts","prompt":"We signed a contract today, April 1 2025, with a 30-business-day delivery window in Germany — what's the actual calendar date that deadline falls on? Can you first tell me how many business days there are between April 1 and May 31 2025 for DE?"},{"title":"Payroll processing day estimation","prompt":"Our payroll team in Singapore needs to know how many business days fall between January 1 2025 and January 31 2025 for SG — can you calculate that including local holidays?"},{"title":"Trade settlement working day check","prompt":"I need to verify how many business days there are between June 10 2025 and June 20 2025 in Japan for a bond settlement calculation — please exclude weekends and JP public holidays."}],"resultDescription":"Returns a JSON object with a 'valid' boolean, the 'country' code used, and 'business_days' integer representing the count of non-weekend, non-holiday days in the requested range.","failureModes":["Invalid or missing date format (not YYYY-MM-DD) returns validation error","Unsupported country code outside US/DE/FR/IE/JP/AU/SG returns error","End date before start date may return zero or error","Network timeout on rare occasions","Payment failure via x402 protocol returns 402 before any computation"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap ($0.001), deterministic business-day count using static holiday calendars — ideal for SLA math, settlement calculations, payroll windows, or any offline scheduling logic across US, Germany, France, Ireland, Japan, Australia, or Singapore. Prefer it over general-purpose date libraries when you need a consistent, pre-validated holiday dataset for multiple regions without maintaining your own holiday lists.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:42:12.428Z","isFirstParty":false}