# Work Time Calc – Business Days Counter

> Work Time Calc – Business Days Counter is a paid API for AI agents from work-time-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-21).

Counts the number of business days between two dates, excluding weekends and a custom holiday list (NETWORKDAYS style).

## Facts

- Endpoint: GET https://work-time-calc.x402tookit.com/business-days?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/work-time-calc-business-days-counter-ec787584
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iDH8WjR1gfowci_bKlbbZ

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 work-time-calc-business-days-counter-ec787584
```

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

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Count business days between two dates, skipping weekends and your holiday list, NETWORKDAYS style.

## Output

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.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/work-time-calc-business-days-counter-ec787584/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from work-time-calc.x402tookit.com](https://www.zero.xyz/host/work-time-calc.x402tookit.com/llms.txt)
