Compute a deadline

    compute_deadline

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

    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.

    Inputs

    NameTypeRequiredDescription
    ulozeniedatetimeYesWhen the message was stored in the electronic mailbox (§ 32 ods. 1), ISO 8601 with a timezone.
    do_vlastnych_rukbooleanYesWhether delivery was into the addressee's own hands (§ 32 ods. 5).
    potvrdenie_dorucenkydatetimeNoWhen the addressee confirmed the electronic receipt, if they did; with a timezone.
    uloznu_lehotu_dniintegerNoThe storage period in days (§ 32 ods. 2) unless a special provision sets another.
    rule_idstringOne ofA rule from the catalogue: csp_odvolanie, csp_odpor_platobny_rozkaz, csp_staznost, csp_dovolanie.
    pocet_dniintegerOne ofA 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.