# Deadline Countdown

Compute time remaining or overdue for dated tasks, label urgency, and sort the list by deadline in table, Markdown, JSON, or CSV format.

## Run it

- **CLI:** `gizza tool deadline-countdown "Submit taxes due: 2026-07-30
Ship launch due: 2026-07-31 16:00
Renew cert due: 2026-08-05
x Done item due: 2026-07-01" 'now=2026-07-31 12:00'`
- **Web:** https://gizza.ai/tools/deadline-countdown/
- **Agents:** machine-readable descriptor (parameters JSON Schema) at https://gizza.ai/tools/deadline-countdown/tool.json

## Inputs

- `tasks` — Tasks with due dates _(field)_
- `now` — Reference date/time _(field)_
- `format` — Output format _(field)_
- `include_completed` — Include completed tasks _(field)_
- `soon_days` — Due-soon window (days) _(field)_

## Output

- Sorted countdown (text)

## Query parameters

Open the tool pre-filled and auto-run via URL:

- `tasks` — Tasks with due dates
- `now` — Reference date/time
- `format` — Output format
- `include_completed` — Include completed tasks
- `soon_days` — Due-soon window (days)

Example: `https://gizza.ai/tools/deadline-countdown/?tasks=Submit%20taxes%20due%3A%202026-07-30%0AShip%20launch%20due%3A%202026-07-31%2016%3A00%0ARenew%20cert%20due%3A%202026-08-05%0Ax%20Done%20item%20due%3A%202026-07-01&now=2026-07-31%2012%3A00&format=table&include_completed=true&soon_days=7`

---

## About this tool

The **Deadline Countdown** turns a plain-text task list into an urgency-sorted schedule. Put one task on each line and include a due date such as `2026-08-01`, `2026-08-01 17:30`, an ISO datetime, or a `due:` / `deadline:` marker. The tool calculates each task's time remaining from your reference `now`, labels the status, and sorts overdue work before upcoming deadlines.

It is useful for daily triage, release checklists, renewal reminders, and turning a quick note into a deadline report. The reference time is explicit so results are reproducible in docs, tests, and CLI runs.

## What you can control

- **Reference date/time** — set the exact moment to count from, such as `2026-07-31 12:00`.
- **Output format** — choose aligned text, Markdown, JSON, or CSV.
- **Include completed tasks** — by default, lines starting with `x`, `[x]`, `done:`, or `✓` are skipped.
- **Due-soon window** — choose how many days ahead should be labeled `DUE SOON`.

## Worked example

Tasks:

```text
Submit taxes due: 2026-07-30
Ship launch due: 2026-07-31 16:00
Renew cert due: 2026-08-05
```

With `now = 2026-07-31 12:00`, the output puts **Submit taxes** first as overdue, **Ship launch** next as due today in four hours, and **Renew cert** after that as due soon.

## Limits and edge cases

- Date parsing is deterministic and local. Use `YYYY-MM-DD`, `YYYY-MM-DD HH:MM`, `YYYY-MM-DDTHH:MM[:SS]`, RFC 3339, `YYYY/MM/DD`, `MM/DD/YYYY`, or `DD.MM.YYYY`.
- The tool does not connect to calendars, issue trackers, or reminder apps; paste exported tasks as text.
- Relative phrases like "tomorrow" or "next Friday" are not parsed. Convert them to explicit dates first.
- Output is capped at 1,000 dated tasks to keep browser and CLI runs responsive.

## FAQ

<details>
<summary>How does the sorting work?</summary>

Overdue tasks sort first, with the most overdue item at the top. Upcoming tasks then sort by nearest due date. The status label is derived from the same time difference: `OVERDUE`, `DUE TODAY`, `DUE SOON`, or `LATER`.

</details>

<details>
<summary>What counts as a completed task?</summary>

By default, lines beginning with `x `, `[x]`, `done:`, or `✓` are skipped. Turn on **Include completed tasks** if you want those lines counted and sorted too.

</details>

<details>
<summary>Can I use it with a todo.txt file?</summary>

Yes. Paste the relevant lines and include dates either inline or after `due:` / `deadline:`. For example, `Finish report due: 2026-08-02` and `Call vendor 2026-08-01` both parse.

</details>

<details>
<summary>Why is the reference time required?</summary>

A fixed `now` makes the result repeatable across browser, CLI, and tests. It also avoids timezone surprises from hidden system clocks; enter the wall-clock date/time you want the countdown to use.

</details>

## Related tools

- [Natural Language → Todo.txt](https://gizza.ai/tools/natural-language-task/): Turn plain-English tasks into todo.txt lines with priority, +project, @context and due dates from phrases like tomorrow or next Friday.
- [Task Format Converter](https://gizza.ai/tools/task-format-converter/): Convert task lists between todo.txt, Markdown checklists, JSON, and CSV while preserving priorities, tags, and dates.
- [Age Calculator](https://gizza.ai/tools/age-calculator/): Calculate your exact age from your date of birth — years, months and days, next birthday countdown and total days lived. Free, private, in-browser.
- [Current UTC Time](https://gizza.ai/tools/clock/): See the current UTC date and time, updating live in your browser. No sign-up, runs offline.
- [Cron Next Run Times](https://gizza.ai/tools/cron-next-runs/): Cron expression parser and next-run calculator — see upcoming run times in UTC with plain-English schedules, free and entirely in your browser.
