ToolAssay

Date Math

Date Math: SLA math in working hours: the deadline N business hours after a start time, or business time elapsed between two times. Use for support-ticket SLAs, response-time targets and office-hours deadlines. Custom hours and workdays, holidays, country public holidays, DST-aware.

Answeringour last check, 2026-11-26
7 of 7checks answered this week
29 msmedian answer time
$0.001listed price per call
$0.001price it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

POST https://date-math.datemath.workers.dev/v1/business_hours

CategoryEverything else
Provider hostdate-math.datemath.workers.dev
Networkseip155:8453
Payment schemesexact
Self-reported calls, 30 days2 from 1 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-11-26 valid payment request 402$0.001 29 ms
2026-11-25 valid payment request 402$0.001 37 ms
2026-11-24 valid payment request 402$0.001 25 ms
2026-11-23 valid payment request 402$0.001 29 ms
2026-11-22 valid payment request 402$0.001 27 ms
2026-11-21 valid payment request 402$0.001 32 ms
2026-11-20 valid payment request 402$0.001 32 ms
2026-11-19 valid payment request 402$0.001 31 ms
2026-11-18 valid payment request 402$0.001 31 ms
2026-11-17 valid payment request 402$0.001 29 ms
2026-11-16 valid payment request 402$0.001 32 ms
2026-11-15 valid payment request 402$0.001 33 ms
2026-11-14 valid payment request 402$0.001 40 ms
2026-11-13 valid payment request 402$0.001 1302 ms
2026-11-12 valid payment request 402$0.001 29 ms
2026-11-11 valid payment request 402$0.001 27 ms
2026-11-10 valid payment request 402$0.001 28 ms
2026-11-09 valid payment request 402$0.001 36 ms
2026-11-08 valid payment request 402$0.001 27 ms
2026-11-07 valid payment request 402$0.001 1526 ms

Example input (from the provider)

{
  "body": {
    "country": "PH",
    "hours": 2,
    "start": "2026-11-06T16:00",
    "timezone": "Asia/Manila",
    "work_end": "17:00",
    "work_start": "09:00"
  },
  "bodyType": "json",
  "method": "POST",
  "type": "http"
}

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "description": "Pass \"hours\"/\"minutes\" to get a deadline, or \"end\" to count business time between start and end.",
          "properties": {
            "country": {
              "description": "ISO 3166-1 alpha-2 country code (207 countries); its public holidays (2000\u20132050) are excluded from business days",
              "example": "US",
              "pattern": "^[A-Za-z]{2}$",
              "type": "string"
            },
            "end": {
              "description": "Count business time from start to end (max 1 year)",
              "type": "string"
            },
            "holidays": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "hours": {
              "maximum": 2000,
              "minimum": 0,
              "type": "number"
            },
            "minutes": {
              "minimum": 0,
              "type": "number"
            },
            "start": {
              "description": "Local datetime in timezone or ISO 8601 with offset; default now",
              "type": "string"
            },
            "timezone": {
              "description": "IANA time zone, e.g. Asia/Manila",
              "type": "string"
            },
            "work_end": {
              "example": "17:00",
              "pattern": "^([01]\\d|2[0-4]):[0-5]\\d$",
              "type": "string"
            },
            "work_start": {
              "example": "09:00",
              "pattern": "^([01]\\d|2[0-4]):[0-5]\\d$",
              "type": "string"
            },
            "workdays": {
              "description": "0 = Sunday; default [1,2,3,4,5]",
              "items": {
                "maximum": 6,
                "minimum": 0,
                "type": "integer"
              },
              "type": "array"
            }
          },
          "required": [
            "timezone"
          ],
          "type": "object"
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        },
        "method": {
          "enum": [
            "POST"
          ],
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "business_hours": {
              "type": "number"
            },
            "business_minutes": {
              "type": "number"
            },
            "deadline": {
              "type": "string"
            },
            "deadline_utc": {
              "type": "string"
            },
            "end": {
              "type": "string"
            },
            "mode": {
              "enum": [
                "deadline",
                "elapsed"
              ],
              "type": "string"
            },
            "start": {
              "type": "string"
            },
            "timezone": {
              "type": "string"
            },
            "weekday": {
              "type": "string"
            }
          },
          "required": [
            "mode",
            "timezone",
            "start",
            "business_minutes"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON