{"uid":"cap_h2_GlCW95uJSzpPfVR8me","slug":"agent402-tools-workday-count-4f01c0d6","name":"agent402.tools Workday Count","description":"Count business days (weekdays) between two dates, optionally excluding US federal holidays (MLK, Presidents Day, Memorial Day, Juneteenth, Independence Day, Labor Day, Columbus Day, Veterans Day, Thanksgiving, Christmas, New Year). ?start=2026-01-...","url":"https://agent402.tools/api/workday-count","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"],"properties":{"end":{"type":"string","description":"End date (YYYY-MM-DD)"},"start":{"type":"string","description":"Start date (YYYY-MM-DD)"},"holidays":{"type":"string","description":"Subtract US federal holidays: true or false (default false)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"end":"2026-12-31","start":"2026-01-01","totalDays":365,"holidayDays":11,"weekendDays":104,"businessDays":250,"holidaysExcluded":true}},"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_A8Tuu8KFfdECGDpnPOaeb","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 business days (weekdays) between two dates, with optional exclusion of US federal holidays","exampleAgentPrompt":"How many business days are there between January 5, 2026 and March 31, 2026, not counting US federal holidays?","exampleUseCases":null,"resultDescription":"Returns the count of weekdays (Monday–Friday) between the two provided dates, minus any US federal holidays if the holidays flag is set to true. The response is a numeric count of valid business days.","failureModes":["Missing required start or end date parameters returns an error","Dates provided in wrong format (not YYYY-MM-DD) may cause a parse error","End date earlier than start date may return zero or an error","Invalid date strings (e.g. 2026-13-01) will likely produce an error response","Network or service unavailability returns a non-200 response"],"whenToPreferThis":"Use this endpoint when you need a precise count of business days between two dates, especially when US federal holiday exclusion matters. Ideal for financial deadline calculations, SLA tracking, payroll period counting, or any scheduling logic that requires weekday-only arithmetic. Prefer this over a general date-difference API when holiday-aware business day counting is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:12:14.769Z","isFirstParty":false}