# Business Days Calculator — Count or Add Working Days

> Business Days Calculator — Count or Add Working Days is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-26).

Counts business days between two dates (excluding weekends and public holidays) or computes a date N business days away, for US, UK, SE, DE, FR, NO, DK, or FI.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/date/business-days?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-26
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-business-days-calculator-a2b885d4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZF4EBmrX3kGbRqY-OJuHv

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 agent-data-tools-revmesh2074-workers-dev-business-days-calculator-a2b885d4
```

Example prompt: How many business days are there between March 1, 2025 and March 31, 2025 in the US, and which holidays fall in that range?

## When to prefer this

Use this endpoint when you need accurate working-day counts or date offsets that respect both weekends and national public holidays for a specific country (US, UK, DE, FR, SE, NO, DK, FI). It is the right choice for SLA calculations, payment terms, payroll scheduling, and delivery estimates where regulatory or business calendars matter. Prefer this over generic date-math when country-specific holiday exclusions are required.

## Known failure modes

- Missing required 'from' parameter returns an error
- Invalid date format (not YYYY-MM-DD) returns a parse error
- Unsupported country code falls back to weekends-only mode with a note in the response
- Using both 'to' and 'add' simultaneously may produce unexpected behavior
- Very large date ranges may hit response size or processing limits

## How this service works

Business days between dates. Count business (working) days between two dates, skipping weekends and public holidays for the US, UK, Sweden, Germany, France, Norway, Denmark or Finland, and list the holidays skipped; or give add=N to get the date N business days after (or before) a date. Other countries count weekends only, and the answer says so. Use for delivery estimates, SLAs, payment terms and payroll dates.

## Output

Returns a JSON object with the count of business days, calendar days, and weekend days in the range; an array of public holidays skipped (each with date and name); the from and to dates used; the country code applied; and a flag indicating whether holiday rules were applied (vs weekends-only mode).

## 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": [
      "from"
     ],
     "properties": {
      "to": {
       "type": "string",
       "examples": [
        "2026-12-31"
       ],
       "description": "End date, YYYY-MM-DD (inclusive; default: the last day of the start month); or use add"
      },
      "add": {
       "type": "integer",
       "examples": [
        10
       ],
       "description": "Business days to add to from (negative to go back), instead of to"
      },
      "from": {
       "type": "string",
       "examples": [
        "2026-12-01"
       ],
       "description": "Start date, YYYY-MM-DD"
      },
      "country": {
       "type": "string",
       "examples": [
        "SE"
       ],
       "description": "Holiday calendar: US, GB, SE, DE, FR, NO, DK or FI (default: weekends only)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "to": {
       "type": "string"
      },
      "from": {
       "type": "string"
      },
      "country": {
       "type": "string"
      },
      "holidays": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "date": {
          "type": "string"
         },
         "name": {
          "type": "string"
         }
        }
       }
      },
      "weekendDays": {
       "type": "number"
      },
      "businessDays": {
       "type": "number"
      },
      "calendarDays": {
       "type": "number"
      },
      "holidayRules": {
       "type": "boolean"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "2026-12-31",
  "from": "2026-12-01",
  "country": "SE",
  "holidays": [
   {
    "date": "2026-12-24",
    "name": "Christmas Eve"
   }
  ],
  "weekendDays": 8,
  "businessDays": 20,
  "calendarDays": 31,
  "holidayRules": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-business-days-calculator-a2b885d4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
