# Work Time Calc – Pay Period Dates

> Work Time Calc – Pay Period Dates 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).

Returns pay-period start and end dates (and optional pay dates) for weekly, biweekly, semi-monthly, or monthly payroll schedules from any reference date.

## Facts

- Endpoint: GET https://work-time-calc.x402tookit.com/pay-periods?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-pay-period-dates-52267010
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nt1zgn4neqH3qRfol29A5

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-pay-period-dates-52267010
```

Example prompt: Give me the next 8 biweekly pay periods starting from today, anchored on 2024-01-01, and include pay dates assuming we pay 2 days after each period ends.

## When to prefer this

Use this endpoint when you need to enumerate concrete pay-period date ranges for any standard payroll frequency (weekly, biweekly, semi-monthly, monthly). It is purpose-built for payroll scheduling rather than generic date arithmetic — it understands payroll-specific concepts like anchor alignment for biweekly schedules, semi-monthly split days, and pay date lag. Prefer it over generic business-day calculators when the goal is generating a payroll calendar or identifying which pay period a given date belongs to.

## Known failure modes

- Missing required 'type' parameter returns an error — weekly/biweekly/semi-monthly/monthly must be specified
- Weekly or biweekly schedules without an 'anchor' parameter will fail or return an error — an anchor date is required to align the schedule
- Invalid date format (not YYYY-MM-DD) causes a parsing error
- count outside 1–60 range is rejected
- splitDay outside 2–28 range is rejected for semi-monthly
- payDateLagDays outside 0–60 range is rejected
- Malformed query parameters may result in degraded or partial responses indicated by the 'degraded' flag

## How this service works

Pay-period start and end dates for weekly, biweekly, semi-monthly or monthly payroll, from any reference date.

## Output

Returns a JSON object containing an array of pay periods, each with start date, end date, period number, day count, start/end weekday names, and optionally a computed pay date. Also includes the containing period start/end for the reference date, the schedule type, the as-of date, and a summary string.

## 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": [
      "type"
     ],
     "properties": {
      "from": {
       "type": "string",
       "description": "Date YYYY-MM-DD; the list starts at the period containing it (default today UTC)"
      },
      "type": {
       "type": "string",
       "description": "weekly, biweekly, semi-monthly or monthly"
      },
      "count": {
       "type": "integer",
       "description": "Number of periods, 1 to 60 (default 6)"
      },
      "anchor": {
       "type": "string",
       "description": "Required for weekly and biweekly: the first day of any known period, YYYY-MM-DD"
      },
      "splitDay": {
       "type": "integer",
       "description": "Semi-monthly only: day the second period starts, 2 to 28 (default 16: periods 1-15 and 16-end)"
      },
      "payDateLagDays": {
       "type": "integer",
       "description": "Days after a period ends that pay is issued, 0 to 60 (adds payDate)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "type": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "periods": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "end": {
          "type": [
           "null",
           "string"
          ]
         },
         "days": {
          "type": [
           "null",
           "number"
          ]
         },
         "start": {
          "type": [
           "null",
           "string"
          ]
         },
         "number": {
          "type": [
           "null",
           "number"
          ]
         },
         "payDate": {
          "type": [
           "null",
           "string"
          ]
  
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/work-time-calc-pay-period-dates-52267010/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)
