# 24K Labs Date Difference Calculator

> 24K Labs Date Difference Calculator is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Computes the difference between two dates/times in days, hours, minutes, and business days.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/v1/date-diff
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/24k-labs-date-difference-calculator-0d458292
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_x5r3Rd2Ik4n6GMvMvqIyD

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 24k-labs-date-difference-calculator-0d458292 -d '<json body>'
```

Example prompt: How many days, hours, minutes, and business days are there between March 15, 2025 and July 4, 2025?

## When to prefer this

Choose this endpoint when you need a quick, accurate temporal difference calculation that includes both calendar and business day breakdowns, without standing up your own date math logic. Especially useful in scheduling, invoicing, SLA tracking, or any workflow where business days (excluding weekends) matter alongside raw calendar units.

## Known failure modes

- Invalid date format provided — returns a 400 error with a format hint
- End date is before start date — may return a negative value or error
- Non-existent dates (e.g. February 30) cause a 422 validation error
- Missing required start or end date fields — returns a 400 bad request

## How this service works

Difference between two dates/times in days, hours, minutes, and business days.

## Output

Returns the computed difference between the two input dates/times broken down into days, hours, minutes, and business days (excluding weekends, and potentially public holidays).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "end": {
   "type": "string"
  },
  "start": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "days": 73
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-date-difference-calculator-0d458292/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
