Download compiled/deadlines-and-drafts.md from swedishembedded/knowledge: direct link, hf CLI and curl.
- Browser
- Download file 4.3 kB
-
https://huggingface.co/swedishembedded/knowledge/resolve/main/compiled/deadlines-and-drafts.md
- Command line
-
hf download hf://swedishembedded/knowledge/compiled/deadlines-and-drafts.md
-
curl -L -o deadlines-and-drafts.md https://huggingface.co/swedishembedded/knowledge/resolve/main/compiled/deadlines-and-drafts.md
title: Deadlines of a material and drafts that break its limits
tiers: rule 1, procedure 2, example 3, mistakes 2
Deadlines of a material and drafts that break its limits
For tasks that ask on which date a deadline of the material falls in a case, and for tasks that give a draft (a plan, a list of items) and ask which of its items go beyond what the material allows.
Rule
The task's own files and stated rules always win over this page; use this page only for what the task leaves open.
- A deadline is a trigger date plus a period. The section names both: "within N days after the invoice date" has the invoice date as trigger and N days as period. The deadline is the trigger plus N. The last day is still in time.
- Deadlines can chain. If one deadline's trigger is another deadline (a reminder "within N days after the due date", where the due date is itself "M days after the invoice date"), compute the first, then count the second from it.
- Use the unit the section states (days, business days, months) and the section in force (an amendment replaces the older number).
- A limit in the material is a bound. "Within N days", "at most N", "no later than": an item breaks it only by going beyond. An item below a maximum is fine. For a minimum ("at least N") an item breaks it only by staying below.
- Match each draft item to its own limit by what it is about. Different items have different limits; do not test one item against another item's limit.
- Report exactly the items that break a limit: no more, no fewer. If none does, the list is empty.
Counting rules: /knowledge/calculation/dates.md. Wording of limits: /knowledge/calculation/limits.md.
Procedure
Deadline question:
- Read all materials; decide which sections are in force.
- Find the section that defines the deadline asked for. Note the trigger event, the period, the unit.
- Find the trigger's date in the case facts. If the trigger is itself a deadline, compute that one first.
- Compute trigger + period in a script. Print the date.
- Write the date under the deadline's name as the request spells it, as a full ISO date.
Draft review:
- Read all materials. List every limit: what it is about, the number, the unit, and whether it is a maximum or a minimum.
- Read the draft. For each numbered item: what is it about, what value does it state?
- Pair each item with the limit about the same thing.
- Test: maximum broken if value > limit; minimum broken if value < limit. Equal to the limit is allowed for "within", "at most", "at least".
- Collect the numbers of the broken items, in the request's shape.
Worked example
Illustration only, with invented data. Your task's data differs: take no fact, count or expected result from this example.
Invented material, a lending code.
Section 2.1. A loan is due 21 days after the lending date. Section 2.2. An overdue notice must be sent within 5 days after the due date. Section 2.6. An appeal must be filed within 40 days after the notice.
Deadline. Case: lending date 2031-08-18. Asked: the overdue-notice deadline. Due date = 2031-08-18 + 21 days = 2031-09-08. Notice deadline = 2031-09-08 + 5 days = 2031-09-13. (Not 2031-09-03: "within 5 days after" counts forward from the due date.)
Draft. A draft procedure states:
- days allowed for sending the overdue notice: 7
- days allowed for filing an appeal: 25
Item 1 is about the notice; its limit is a maximum of 5 days; 7 > 5: broken. Item 2 is about the appeal; its limit is a maximum of 40 days; 25 is under it: fine. (It is not broken for "not being 40".) Answer: item 1 only.
Common mistakes
- Subtracting the period from the trigger: "within N days after X" read as X minus N.
- Counting from the wrong trigger (the lending date instead of the due date).
- Skipping the first link of a chain and counting the second period from the first trigger.
- Treating a maximum as a required exact value and flagging every item that differs from it.
- Testing an item against the limit of a different subject.