# WritersLogic Business-Day Deadline Calculator

> WritersLogic Business-Day Deadline Calculator is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

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.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/business-deadline?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-business-day-deadline-calculator-7fe3dbaf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rS0B7aBa1qhZk2bu4_PhP

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability writerslogic-business-day-deadline-calculator-7fe3dbaf -d '<json body>'
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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 a
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-business-day-deadline-calculator-7fe3dbaf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
