{"uid":"cap_iDH8WjR1gfowci_bKlbbZ","slug":"work-time-calc-business-days-counter-ec787584","name":"Work Time Calc – Business Days Counter","description":"Count business days between two dates, skipping weekends and your holiday list, NETWORKDAYS style.","url":"https://work-time-calc.x402tookit.com/business-days?utm_source=zero.xyz","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":"Last date YYYY-MM-DD (before start gives a negative count)"},"start":{"type":"string","description":"First date YYYY-MM-DD"},"weekend":{"type":"string","description":"Comma-separated weekend days, default sat,sun; none for a 7-day week"},"holidays":{"type":"string","description":"Comma-separated holiday dates YYYY-MM-DD (up to 500)"},"inclusive":{"type":"boolean","description":"true (default) counts both ends; false counts start but not end"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"inclusive":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"weekendDays":{"type":["null","number"]},"businessDays":{"type":["null","number"]},"calendarDays":{"type":["null","number"]},"holidaysApplied":{"type":["array","null"],"items":{"type":"string"}},"holidaysOnWorkingDays":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4ZzrLdjxSCN2LHXAEQ3V2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Counts the number of business days between two dates, excluding weekends and a custom holiday list (NETWORKDAYS style).","exampleAgentPrompt":"How many business days are there between January 6, 2025 and March 31, 2025, skipping weekends and these US federal holidays: 2025-01-20, 2025-02-17, 2025-05-26?","exampleUseCases":[{"title":"Contract deadline business day count","prompt":"My contract starts on February 3, 2025 and ends on April 30, 2025 — how many business days is that, excluding weekends and these company holidays: 2025-02-17, 2025-04-18?"},{"title":"Project sprint planning calendar","prompt":"We're planning a sprint from March 10, 2025 to March 28, 2025. How many actual working days do we have, skipping Saturday and Sunday but also March 14 and March 17 which are company off-days?"},{"title":"Invoice payment due date compliance","prompt":"Our payment terms say 30 business days from the invoice date of May 1, 2025 to May 30, 2025 — can you tell me exactly how many business days fall in that window, excluding weekends and Memorial Day on May 26?"}],"resultDescription":"Returns a JSON object containing the count of business days, calendar days, and weekend days in the range; the list of holidays that were applied; whether both endpoints were counted (inclusive flag); a summary string; and metadata such as source and timestamp.","failureModes":["Missing required start or end query parameter returns an error","Malformed date strings (non-YYYY-MM-DD) cause a parsing error","End date before start date returns a negative business day count (by design)","Invalid holiday date formats in the comma-separated list may be silently skipped or cause an error","More than 500 holidays supplied may be rejected","Invalid weekend day values (not sat/sun/mon etc.) cause a parameter error"],"whenToPreferThis":"Choose this endpoint when you need a server-side, authoritative business-day count between two dates with full control over which days are treated as the weekend and a custom holiday list of up to 500 dates — equivalent to Excel's NETWORKDAYS function. Prefer it over client-side date math when accuracy, auditability, or support for non-standard work weeks (e.g. Sun–Thu) matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:20:39.843Z","isFirstParty":false,"canonicalSlug":"work-time-calc-business-days-counter-ec787584"}