# Halowerk Workday/NETWORKDAYS Calendar Reconstructor

> Halowerk Workday/NETWORKDAYS Calendar Reconstructor is a paid API for AI agents from detect.halowerk.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-04).

Computes working-day offsets (WORKDAY) and inclusive working-day counts (NETWORKDAYS) from a custom weekend mask, explicit holiday list, start/end dates, and an integer offset.

## Facts

- Endpoint: POST https://detect.halowerk.com/v1/F-TD2000-DOCUMENTS-05/xlsx-explicit-weekmask-holiday-workday-networkday-calendar?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/halowerk-workday-networkdays-calendar-reconstructor-d55b552f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kT40Iai14BYtQccr3slJM

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 halowerk-workday-networkdays-calendar-reconstructor-d55b552f -d '<json body>'
```

Example prompt: Starting from 2025-01-02, with weekends on Saturday and Sunday (weekend mask '0000011') and holidays on 2025-01-20 and 2025-02-17, what date falls exactly 30 working days later — and how many net working days are between 2025-01-02 and 2025-03-14?

## When to prefer this

Use this endpoint when you need to reconstruct or validate spreadsheet-compatible WORKDAY and NETWORKDAYS calculations against an explicit, fully-specified calendar — including custom weekend patterns (non-standard workweeks) and arbitrary holiday lists. Prefer it over generic date-math libraries when you need Excel/Google Sheets formula parity, auditability of claimed results, or support for non-Monday-Friday weekends.

## Known failure modes

- Invalid date format (not YYYY-MM-DD) returns a validation error
- Weekend mask not exactly 7 characters of 0/1 returns a schema error
- Offset outside the range -3660 to 3660 is rejected
- More than 256 holidays in the array causes rejection
- Missing required fields (start, end, weekend, holidays, offset) return 400-level errors
- Ambiguous or impossible calendar configurations may return unexpected results

## How this service works

Reconstruct positive/negative working-day offsets and inclusive working-day counts from an explicit calendar.

## Output

Returns the reconstructed WORKDAY date (the date that falls N working days from start) and/or the reconstructed NETWORKDAYS count (the inclusive count of working days between start and end), computed from the provided weekend bitmask and holiday list. If a claim object is provided, the response can be compared against the submitted claim values for validation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "artifact": {
   "type": "object",
   "required": [
    "spreadsheetWorkdays"
   ],
   "properties": {
    "spreadsheetWorkdays": {
     "type": "object",
     "required": [
      "data",
      "claim"
     ],
     "properties": {
      "data": {
       "type": "object",
       "required": [
        "start",
        "end",
        "weekend",
        "holidays",
        "offset"
       ],
       "properties": {
        "end": {
         "type": "string",
         "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
         "maxLength": 10,
         "minLength": 10
        },
        "start": {
         "type": "string",
         "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
         "maxLength": 10,
         "minLength": 10
        },
        "offset": {
         "type": "integer",
         "maximum": 3660,
         "minimum": -3660
        },
        "weekend": {
         "type": "string",
         "pattern": "^[01]{7}$",
         "maxLength": 7,
         "minLength": 7
        },
        "holidays": {
         "type": "array",
         "items": {
          "type": "string",
          "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
          "maxLength": 10,
          "minLength": 10
         },
         "maxItems": 256,
         "minItems": 0
        }
       },
       "additionalProperties": false
      },
      "claim": {
       "anyOf": [
        {
         "type": "null"
        },
        {
         "type": "object",
         "required": [
          "networkdays",
          "workday_date"
         ],
         "properties": {
          "networkdays": {
           "type": "integer",
           "maximum": 3661,
           "minimum": -3661
          },
          "workday_date": {
           "type": "string",
           "maxLength": 20000
          }
         },
         "additionalProperties": false
        }
       ]
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/halowerk-workday-networkdays-calendar-reconstructor-d55b552f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from detect.halowerk.com](https://www.zero.xyz/host/detect.halowerk.com/llms.txt)
