← All quick checks

Date calculator: add durations and business days

$0.0021 USD per call Pay per call via x402, no signup

This call does date arithmetic offline: it adds or subtracts durations (ISO 8601 or plain text, including business days with your weekend and holiday list) and gives the difference to a second date in calendar days, weeks, years/months/days and business days, plus weekday, ISO week, day of year and quarter. Input is a date (YYYY-MM-DD, ISO date-time, Unix seconds, today or now), with optional add, subtract, until, time zone, weekend and holidays; years 1000–9999 are accepted.

Call it

x402: GET https://shop.lordevo.com/api/quick/date-calc?date=2026-01-31&add=1%20month%2010%20business%20days&until=2026-12-25 · MCP tool date_calc at https://shop.lordevo.com/mcp

The first call answers HTTP 402 with the price ($0.0021 USD per call, USDC on Base); any x402 client pays and retries. Instant tools that fail or are refused are not charged. Discovery is free: /catalog.json, /openapi.json, /llms.txt.

Example

The catalog's own example for this tool (illustrative sample values, not a live result).

Input

{
  "date": "2026-01-31",
  "add": "1 month 10 business days",
  "until": "2026-12-25"
}

Output

{
  "tool": "date-calc",
  "timezone": "UTC",
  "input": {
    "date": "2026-01-31",
    "add": "1 month 10 business days",
    "subtract": null,
    "until": "2026-12-25"
  },
  "start": {
    "date": "2026-01-31",
    "datetime": null,
    "weekday": "Saturday",
    "iso_week": "2026-W05",
    "day_of_year": 31,
    "quarter": 1,
    "days_in_month": 31,
    "is_leap_year": false,
    "is_weekend": true,
    "is_business_day": false
  },
  "applied": {
    "years": 0,
    "months": 1,
    "weeks": 0,
    "days": 0,
    "business_days": 10,
    "hours": 0,
    "minutes": 0,
    "seconds": 0
  },
  "result": {
    "date": "2026-03-13",
    "datetime": null,
    "weekday": "Friday",
    "iso_week": "2026-W11",
    "day_of_year": 72,
    "quarter": 1,
    "is_business_day": true
  },
  "difference": {
    "direction": "future",
    "calendar_days": 328,
    "weeks": 46,
    "weeks_remainder_days": 6,
    "years": 0,
    "months": 10,
    "days": 25,
    "business_days": 235,
    "total_months": 10
  },
  "business_rules": {
    "weekend": [
      "Sunday",
      "Saturday"
    ],
    "holidays": 0
  },
  "notes": [
    "end_of_month_clamped: day 31 does not exist in 2026-02; used day 28"
  ]
}

All quick checks and prices · Guides · Errors and limits