# Saylor Innovations Date Difference Calculator

> Saylor Innovations Date Difference Calculator is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-17).

Calculates the total days, weeks, years-months-days breakdown, and business days between two given dates

## Facts

- Endpoint: GET https://saylorinnovations.com/api/calc/date-diff?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-date-difference-calculator-669daa92
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_P6IcA52spkNZSaE3QaQyz

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 saylor-innovations-date-difference-calculator-669daa92
```

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

## When to prefer this

Choose this endpoint when you need a quick, accurate computation of the span between two dates expressed in multiple formats simultaneously — total days, business days, weeks, and a years-months-days breakdown — all in one call. It's ideal for project planning, contract duration checks, scheduling, invoicing, and any scenario where both calendar days and working days matter. Prefer it over a generic calendar library when you want a simple HTTP call returning pre-computed, ready-to-display date-span data including weekday labels.

## Known failure modes

- Missing required 'from' or 'to' query parameters — likely returns 400 or error response
- Invalid date format (not YYYY-MM-DD) — likely returns 400 or parsing error
- End date before start date — may return negative values or an error
- Network timeout or service unavailability — returns HTTP 5xx
- Payment not provided or insufficient — returns HTTP 402 Payment Required

## How this service works

Days between two dates calculator - total days, weeks, years-months-days and business days between any two dates

## Output

Returns a JSON object with: total days between the two dates, number of business days (excluding weekends), total complete weeks, remainder days after full weeks, a years-months-days breakdown object, the weekday name for each input date, the input from/to date strings, a checked_at UTC timestamp, and an optional note providing context or caveats about the result.

## 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",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "End date YYYY-MM-DD"
      },
      "from": {
       "type": "string",
       "description": "Start date YYYY-MM-DD"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "days",
      "business_days"
     ],
     "properties": {
      "to": {
       "type": [
        "string",
        "null"
       ],
       "description": "End of the range"
      },
      "days": {
       "type": "number",
       "description": "Number of days"
      },
      "from": {
       "type": [
        "string",
        "null"
       ],
       "description": "Start of the range"
      },
      "note": {
       "type": [
        "string",
        "null"
       ],
       "description": "Caveat or context for reading the result"
      },
      "weeks": {
       "type": "number"
      },
      "checked_at": {
       "type": [
        "string",
        "null"
       ],
       "description": "Time the check was run (UTC)"
      },
      "to_weekday": {
       "type": "string",
       "description": "To weekday"
      },
      "from_weekday": {
       "type": "string",
       "description": "From weekday"
      },
      "business_days": {
       "type": "number",
       "description": "Number of business days"
      },
      "remainder_days": {
       "type": "number",
       "description": "Remainder days"
      },
      "years_months_days": {
       "type": "object",
       "description": "Years months days"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-innovations-date-difference-calculator-669daa92/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
