{"uid":"cap_rS0B7aBa1qhZk2bu4_PhP","slug":"writerslogic-business-day-deadline-calculator-7fe3dbaf","name":"WritersLogic Business-Day Deadline Calculator","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/business-deadline?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"days":{"type":"integer","maximum":3650,"minimum":0},"start":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}([Tt ]\\d{2}:\\d{2}(:\\d{2})?)?$","maxLength":19,"description":"Local date YYYY-MM-DD, or local date-time YYYY-MM-DDTHH:MM[:SS] (the notice/receipt moment). Never read from the clock."},"cutoff":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$","maxLength":5,"description":"Local HH:MM. With a date-time start (direction after), a start strictly later than the cutoff, or on a non-business day, is deemed received on the next business day. 17:00 exactly is on time. Without cutoff there is no roll."},"weekend":{"type":"array","items":{"type":"integer","maximum":6,"minimum":0},"maxItems":6,"description":"Non-business weekdays, 0=Sunday..6=Saturday. Default [0, 6]; use [5, 6] for a Friday/Saturday weekend."},"calendar":{"enum":["us-federal","us-federal-reserve","nyse","us-equities-settlement","uk-england-and-wales","uk-scotland","uk-northern-ireland","weekends-only","caller"],"type":"string","description":"Named holiday calendar with a source and supported date range (outside it the answer is unsupported), weekends-only (Saturday/Sunday only), or caller (only the holidays you list)."},"counting":{"enum":["clear","elapsed"],"type":"string","description":"clear: days strictly between start and deadline, so the deadline is business day N+1. elapsed: the deadline is business day N after start (the end day is counted)."},"holidays":{"type":"array","items":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"maxItems":400,"description":"Extra non-business dates YYYY-MM-DD (company closures, a calendar we do not carry)."},"timeZone":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_+-]*(/[A-Za-z0-9_+-]+){0,2}$","maxLength":64,"description":"IANA zone for deadlineTime."},"direction":{"enum":["after","before"],"type":"string","description":"Default after. before counts backward from start (for 'at least N days before the hearing')."},"deadlineTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$","maxLength":5,"description":"Local HH:MM at which the deadline expires on the deadline date; needs timeZone to produce an instant."},"disambiguation":{"enum":["earlier","later"],"type":"string","description":"How to read a deadline time that falls in a DST gap (earlier: before-gap offset reading backward; later: shifted forward) or overlap (earlier/later occurrence). Without it, a gap or overlap returns unknown with both candidates."},"claimedDeadline":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10,"description":"A deadline date someone asserted; the check fails with the computed date if it differs."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ISCuCJuvmqduo9HMUIF2R","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the exact calendar date (and optional DST-aware time) on which a business-day deadline falls, supporting forward/backward counting, cutoff-time rolling, and named or caller-supplied holiday calendars.","exampleAgentPrompt":"What date does a 10 clear business days deadline land on if the notice was received on 2025-03-14 at 17:30, cutoff is 17:00, using the US federal holiday calendar — and what's the deadline at 17:00 America/New_York?","exampleUseCases":[{"title":"Contract notice response window","prompt":"A supplier sent us a contract notice on 2025-04-01 at 09:00. Our agreement says they get '10 clear business days' to respond. Using the NYSE calendar, what date does that deadline fall on, and what's 17:00 America/New_York on that day?"},{"title":"Legal filing backward deadline","prompt":"A court hearing is set for 2025-06-16. I need to file objections at least 5 clear business days before that date using the UK England-and-Wales bank holiday calendar — what's the latest date I can file?"},{"title":"SLA breach check with company closures","prompt":"Our SLA says we must respond within 3 elapsed business days. A ticket came in on 2025-05-07 at 16:45, our cutoff is 17:00, and we're closed on 2025-05-09 as a company holiday. Using a caller calendar with that extra closure, what's the deadline date?"}],"resultDescription":"Returns the computed deadline date (YYYY-MM-DD) and optionally a DST-aware deadline instant, the number of business days counted, the holiday calendar source and as-of date, and the supported date range — or an 'unsupported' status if the requested dates fall outside the named calendar's range.","failureModes":["Dates outside the named calendar's supported range return an 'unsupported' status rather than a date","Invalid IANA timezone string causes a validation error","days value exceeding 3650 is rejected","Malformed start date/datetime pattern fails schema validation","More than 400 custom holidays in the holidays array is rejected","Ambiguous contract wording cannot be interpreted — the caller must supply the counting and direction parameters explicitly"],"whenToPreferThis":"Use this endpoint when an AI agent needs to deterministically compute a business-day deadline from a known start date, day count, and calendar — especially for legal notices, contract periods, SLA windows, or financial settlement dates where named calendars (US Federal, NYSE, UK bank holidays) and after-cutoff rolling rules matter. Prefer it over generic date-math utilities when you need DST-aware deadline times, backward counting, or auditability of the holiday calendar source and range.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:38:15.037Z","isFirstParty":false,"canonicalSlug":"writerslogic-business-day-deadline-calculator-7fe3dbaf"}