# 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/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-382bee05
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-p8d-Vpsu-_qtYMce1kWm

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-382bee05 -d '<json body>'
```

Example prompt: How many days, hours, and business days are between January 15, 2025 and March 28, 2025?

## When to prefer this

Use this endpoint when you need a quick, reliable computation of the time span between two dates in multiple units simultaneously (days, hours, minutes, and business days) without building custom date arithmetic. Especially useful when business day counting is required, which typically involves excluding weekends. Prefer this over general-purpose code execution when a lightweight, low-latency single API call is sufficient.

## Known failure modes

- Invalid date format — malformed or unparseable date strings return an error
- Missing required fields — omitting start or end date results in a validation error
- End date before start date — may return negative values or an error depending on implementation
- Unsupported timezone identifiers — ambiguous or invalid timezone strings may cause failures

## How this service works

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

## Output

Returns the difference between two dates/times expressed as total days, total hours, total minutes, and business days (excluding weekends and possibly holidays), giving a comprehensive breakdown of elapsed or remaining time.

## 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-382bee05/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)
