# Compute a deadline

> Last day of a civil-procedure deadline from one electronic delivery, every step cited.

<!-- html: https://lexomat.sk/en/doc/compute-deadline · sk: https://lexomat.sk/doc/compute-deadline.md · index: https://lexomat.sk/llms.txt -->
## What it does

`compute_deadline` computes the last day of a civil-procedure deadline (lehota) from the facts of one electronic delivery under § 32 of Act 305/2013 Z. z. It knows four rules of the Civil Dispute Code — appeal (`csp_odvolanie`), objection to a payment order (`csp_odpor_platobny_rozkaz`) and complaint (`csp_staznost`), 15 days each, and the extraordinary appeal on a point of law (dovolanie, `csp_dovolanie`), two months from delivery — and takes a court-set number of days for anything else. Every counting step names the provision it rests on, and the response states which holiday calendar and rule catalogue it used.

> **Read-only, informational, not legal advice.** The counting steps are authored text, not statute text, and the response labels them as such. An unknown `rule_id` returns the catalogue, never a guess. Do not send client, case or personal data; the inputs are dates and flags only.

## Inputs

| Name                     | Type     | Required | Description                                                                                   |
| ------------------------ | -------- | -------- | --------------------------------------------------------------------------------------------- |
| `ulozenie`               | datetime | Yes      | When the message was stored in the electronic mailbox (§ 32 ods. 1), ISO 8601 with a timezone. |
| `do_vlastnych_ruk`       | boolean  | Yes      | Whether delivery was into the addressee's own hands (§ 32 ods. 5).                           |
| `potvrdenie_dorucenky`   | datetime | No       | When the addressee confirmed the electronic receipt, if they did; with a timezone.            |
| `uloznu_lehotu_dni`      | integer  | No       | The storage period in days (§ 32 ods. 2) unless a special provision sets another.             |
| `rule_id`                | string   | One of   | A rule from the catalogue: `csp_odvolanie`, `csp_odpor_platobny_rozkaz`, `csp_staznost`, `csp_dovolanie`. |
| `pocet_dni`              | integer  | One of   | A court-set length in days. Pass exactly one of `rule_id` and `pocet_dni`.                    |

Electronic delivery only; day-counted deadlines (§ 121 ods. 2 and 4 CSP) and the dovolanie, counted in months (§ 121 ods. 3 CSP, from the delivery day itself). Other month-, week- or year-counted deadlines are not computed. For the dovolanie the response warns that a corrective ruling (opravné uznesenie), which restarts the deadline within the scope of the correction (§ 427 ods. 1 CSP), is not computed.

## Returns

- **`last_day`** — the last day of the deadline.
- **`steps`** — the counting steps in order (delivery moment, start of the count, weekend or holiday shift), each with the provision it rests on and a provenance label marking it as authored text.
- **`calendar_version`**, **`catalogue_version`** — which holiday calendar and rule catalogue produced the result.
- On an unknown `rule_id`: the catalogue of known rules, and no date.

## Example

A judgment was stored in the electronic mailbox on 3 November 2026 at 14:02 and taken over at once. The calling AI calls `compute_deadline` with `ulozenie: "2026-11-03T14:02:00+01:00"`, `do_vlastnych_ruk: true`, `potvrdenie_dorucenky` the same moment and `rule_id: "csp_odvolanie"`, and quotes the last day with every step cited.

## Notes

- Deterministic, no LLM involved.
- Debits the **corpus** quota (see **Usage limits**).
- The deadline in a particular matter can turn on facts this tool does not take (a different delivery channel, a special provision, a court order); treat the result as arithmetic to check, not a date to rely on.
