ToolAssay

Date Math

Date Math: Job schedules that skip weekends and public holidays, which cron cannot express: "3rd business day of the month at 09:00", "last business day", "every Monday, or the next business day if it is a holiday", or any cron with a holiday rule. Returns the next runs and whether it runs today. DST-aware. Use for payroll, billing, reports and batch jobs.

Answeringour last check, 2026-11-27
7 of 7checks answered this week
1148 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_day_schedule

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

Our checks, last 30 days

DayResultHTTPAskedTime
2026-11-27 valid payment request 402$0.001 1317 ms
2026-11-26 valid payment request 402$0.001 1337 ms
2026-11-25 valid payment request 402$0.001 1196 ms
2026-11-24 valid payment request 402$0.001 1148 ms
2026-11-23 valid payment request 402$0.001 82 ms
2026-11-22 valid payment request 402$0.001 27 ms
2026-11-21 valid payment request 402$0.001 24 ms
2026-11-20 valid payment request 402$0.001 1249 ms
2026-11-19 valid payment request 402$0.001 1279 ms
2026-11-18 valid payment request 402$0.001 1322 ms
2026-11-17 valid payment request 402$0.001 33 ms
2026-11-16 valid payment request 402$0.001 1275 ms
2026-11-15 valid payment request 402$0.001 26 ms
2026-11-14 valid payment request 402$0.001 38 ms
2026-11-13 valid payment request 402$0.001 1581 ms
2026-11-12 valid payment request 402$0.001 1842 ms
2026-11-11 valid payment request 402$0.001 34 ms
2026-11-10 valid payment request 402$0.001 30 ms

Example input (from the provider)

{
  "body": {
    "count": 2,
    "country": "GB",
    "from": "2026-11-10",
    "n": 3,
    "rule": "nth_business_day",
    "timezone": "Europe/London"
  },
  "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": {
          "properties": {
            "adjust": {
              "default": "next",
              "description": "For weekend/holiday dates. modified_following: next, unless that is next month, then previous",
              "enum": [
                "next",
                "previous",
                "modified_following",
                "modified_preceding",
                "nearest",
                "skip",
                "none"
              ],
              "type": "string"
            },
            "check_date": {
              "example": "2026-11-07",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "type": "string"
            },
            "count": {
              "default": 5,
              "description": "Runs to return",
              "maximum": 50,
              "minimum": 1,
              "type": "integer"
            },
            "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"
            },
            "day": {
              "description": "1\u201331 (31 = month end in short months) or \"last\"",
              "oneOf": [
                {
                  "maximum": 31,
                  "minimum": 1,
                  "type": "integer"
                },
                {
                  "enum": [
                    "last"
                  ],
                  "type": "string"
                }
              ]
            },
            "expression": {
              "description": "Cron, 5 or 6 fields, max 96 runs a day",
              "type": "string"
            },
            "from": {
              "description": "Runs at or after: date, local datetime or ISO 8601. Default now",
              "type": "string"
            },
            "holidays": {
              "description": "Extra dates excluded from business-day counts (rest days from workdays are always excluded)",
              "items": {
                "example": "2026-11-07",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                "type": "string"
              },
              "maxItems": 1000,
              "type": "array"
            },
            "months": {
              "description": "Only these months, e.g. [1,4,7,10]",
              "items": {
                "maximum": 12,
                "minimum": 1,
                "type": "integer"
              },
              "maxItems": 12,
              "minItems": 1,
              "type": "array"
            },
            "n": {
              "description": "1 = first business day of the month, -1 = last, -2 = second to last",
              "maximum": 23,
              "minimum": -23,
              "type": "integer"
            },
            "rule": {
              "description": "nth_business_day needs n, day_of_month needs day, weekly needs weekdays, cron needs expression",
              "enum": [
                "nth_business_day",
                "day_of_month",
                "weekly",
                "cron"
              ],
              "type": "string"
            },
            "time": {
              "default": "09:00",
              "description": "Local HH:MM (not for cron)",
              "type": "string"
            },
            "timezone": {
              "description": "IANA zone (default UTC)",
              "type": "string"
            },
            "weekdays": {
              "description": "0 = Sunday, e.g. [1] for Mondays",
              "items": {
                "maximum": 6,
                "minimum": 0,
                "type": "integer"
              },
              "maxItems": 7,
              "minItems": 1,
              "type": "array"
            },
            "workdays": {
              "description": "Working days of the week, 0 = Sunday. Default [1,2,3,4,5] (Mon\u2013Fri); e.g. [0,1,2,3,4] for Sun\u2013Thu or [1,2,3,4,5,6] for Mon\u2013Sat",
              "example": [
                1,
                2,
                3,
                4,
                5
              ],
              "items": {
                "maximum": 6,
                "minimum": 0,
                "type": "integer"
              },
              "maxItems": 7,
              "minItems": 1,
              "type": "array"
            }
          },
          "required": [
            "rule"
          ],
          "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": {
            "adjust": {
              "type": "string"
            },
            "check": {
              "properties": {
                "date": {
                  "type": "string"
                },
                "is_business_day": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "run_times": {
                  "items": {
                    "properties": {
                      "datetime": {
                        "type": "string"
                      },
                      "scheduled_date": {
                        "type": "string"
    

This page as JSON