ToolAssay

Date Math

Date Math: Rolling stay-limit math such as the Schengen 90/180 rule: days used in the window, days left, overstay check, the longest stay allowed from a planned entry date, and the next date a full stay is possible. Entry and exit days both count. Custom rules via max_days/window_days. Use for travel planning, visa-free stays and "can I enter on".

Answeringour last check, 2026-11-26
7 of 7checks answered this week
32 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/stay

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 28 ms
2026-11-25 valid payment request 402$0.001 36 ms
2026-11-24 valid payment request 402$0.001 34 ms
2026-11-23 valid payment request 402$0.001 26 ms
2026-11-22 valid payment request 402$0.001 38 ms
2026-11-21 valid payment request 402$0.001 31 ms
2026-11-20 valid payment request 402$0.001 32 ms
2026-11-19 valid payment request 402$0.001 1295 ms
2026-11-18 valid payment request 402$0.001 34 ms
2026-11-17 valid payment request 402$0.001 32 ms
2026-11-16 valid payment request 402$0.001 30 ms
2026-11-15 valid payment request 402$0.001 25 ms
2026-11-14 valid payment request 402$0.001 29 ms
2026-11-13 valid payment request 402$0.001 56 ms
2026-11-12 valid payment request 402$0.001 31 ms
2026-11-11 valid payment request 402$0.001 28 ms
2026-11-10 valid payment request 402$0.001 17 ms
2026-11-09 valid payment request 402$0.001 1459 ms
2026-11-08 valid payment request 402$0.001 30 ms

Example input (from the provider)

{
  "body": {
    "date": "2026-10-01",
    "entry": "2026-11-01",
    "trips": [
      {
        "entry": "2026-06-01",
        "exit": "2026-07-15"
      },
      {
        "entry": "2026-09-10",
        "exit": "2026-09-30"
      }
    ]
  },
  "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": {
            "date": {
              "example": "2026-11-07",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "type": "string"
            },
            "entry": {
              "example": "2026-11-07",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "type": "string"
            },
            "max_days": {
              "default": 90,
              "maximum": 365,
              "minimum": 1,
              "type": "integer"
            },
            "trips": {
              "description": "Past and planned stays. Entry and exit days both count as days present.",
              "items": {
                "properties": {
                  "entry": {
                    "example": "2026-11-07",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "type": "string"
                  },
                  "exit": {
                    "example": "2026-11-07",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "type": "string"
                  }
                },
                "required": [
                  "entry",
                  "exit"
                ],
                "type": "object"
              },
              "maxItems": 200,
              "type": "array"
            },
            "window_days": {
              "default": 180,
              "description": "Length of the rolling window, counted back from each day (inclusive)",
              "maximum": 730,
              "minimum": 1,
              "type": "integer"
            }
          },
          "required": [
            "trips"
          ],
          "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": {
            "date": {
              "type": "string"
            },
            "days_remaining": {
              "type": "integer"
            },
            "days_used": {
              "description": "Days present in the window ending on date",
              "type": "integer"
            },
            "first_overstay": {
              "description": "First day any trip broke the rule, or null",
              "type": [
                "string",
                "null"
              ]
            },
            "in_compliance": {
              "type": "boolean"
            },
            "max_stay": {
              "description": "Present when entry was given",
              "properties": {
                "days_allowed": {
                  "type": "integer"
                },
                "entry": {
                  "type": "string"
                },
                "latest_exit": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "entry",
                "days_allowed",
                "latest_exit"
              ],
              "type": [
                "object",
                "null"
              ]
            },
            "next_full_stay_date": {
              "description": "Earliest date after date from which a full max_days stay is allowed",
              "type": [
                "string",
                "null"
              ]
            },
            "note": {
              "type": "string"
            },
            "overstay_days": {
              "type": "integer"
            },
            "rule": {
              "properties": {
                "max_days": {
                  "type": "integer"
                },
                "window_days": {
                  "type": "integer"
                },
                "window_end": {
                  "type": "string"
                },
                "window_start": {
                  "type": "string"
                }
              },
              "required": [
                "max_days",
                "window_days",
                "window_start",
                "window_end"
              ],
              "type": "object"
            }
          },
          "required": [
            "date",
            "rule",
            "days_used",
            "days_remaining",
            "overstay_days",
            "in_compliance",
            "first_overstay",
            "max_stay",
            "next_full_stay_date",
            "note"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON