# Workday & Calendar Day Calculator

> Workday & Calendar Day Calculator is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-16).

Counts calendar days or business days (weekday-only) between two dates, or adds a number of days to a start date, for SLA, project, and payment-term calculations.

## Facts

- Endpoint: POST https://x402.forgemesh.io/workday-calculator
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/workday-calendar-day-calculator-d3f15d1e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KRf28NrWXBMkWZQrcTROr

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 workday-calendar-day-calculator-d3f15d1e -d '<json body>'
```

Example prompt: How many business days are there between March 3rd and April 25th? I need to know if we're within a 30 business-day SLA window.

## When to prefer this

Use this endpoint when you need a precise count of business days (excluding weekends) or calendar days between two dates, or when computing a future/past date by adding a number of days — particularly for SLA tracking, payment net-terms (e.g. Net-30), contract deadlines, or project milestone planning where weekend exclusion matters.

## Known failure modes

- Invalid ISO date format returns an error (e.g. non-ISO strings like 'March 3rd' instead of '2025-03-03')
- Missing both end date and add_days may return an error or default to a zero-day calculation
- Date range where start is after end may return a negative count or error
- Non-integer value for add_days may cause a parsing error

## How this service works

Counts calendar days or weekday-only business days between two dates, excluding weekends automatically. Built for SLA tracking, project timelines, and payment-term calculations where 'business days' and 'calendar days' give different, and important, answers.

## Output

Returns a count of calendar or weekday-only business days between two dates, or the resulting date after adding a specified number of days to a start date, enabling precise SLA, payment-term, and timeline calculations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "end": {
   "type": "string",
   "description": "ISO date — if set, returns days between"
  },
  "start": {
   "type": "string",
   "description": "ISO date (default now)"
  },
  "add_days": {
   "type": "string",
   "description": "days to add to start"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "calendar_days": 17,
  "business_days_weekdays_only": 13
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/workday-calendar-day-calculator-d3f15d1e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
