legal 1 credit · ~$0.015 <5ms

Deadline Calculator

POST /v1/legal/deadline

Deterministic deadline arithmetic for legal and compliance workflows. Count a number of court days (skipping weekends and US federal holidays, with observed-day rules) or calendar days, forward or backward from a start date, and get the resolved date plus exactly which days were skipped — so an agent never miscounts a filing deadline.

Capabilities

  • Court-day mode skips weekends + US federal holidays (2020–2035)
  • Calendar-day mode counts every day
  • Count forward (after) or backward (before)
  • Returns the resolved date and the days skipped
  • Deterministic and offline, with a SHA-256 certificate

Use cases

  • Compute filing and response deadlines
  • Statute-of-limitations math
  • Docketing and calendaring agents
  • Any deadline an agent must not miscount
example
curl -X POST https://api.agent-toolbox.ai/v1/legal/deadline \
  -H "Content-Type: application/json" \
  -d '{"startDate": "2025-01-01", "days": 30, "mode": "court"}'
response shape
{
  "verdict": "PASS" | "FLAG" | "BLOCK",
  // tool-specific findings…
  "certificate": "sha256:..."
}