After reading Die With Zero, I wanted to try Final Countdown, an app mentioned in the book.
But when I searched the App Store, I couldn't find it or download it. So I decided to build something for myself. That's how Clessidra started.
Clessidra is an iPhone and iPad app for visualizing your remaining time and organizing the things you want to do in life. Its name means “hourglass” in Italian.
Download Clessidra on the App Store
Looking for the App Mentioned in Die With Zero
The starting point was Bill Perkins's book, Die With Zero.
It's easy to have things you want to do “someday” without thinking much about how much time you actually have. Seeing that time as a number, as described in the book, seemed like a useful prompt to think about when I wanted those things to happen.
This is about my experience when I searched for Final Countdown. I haven't verified its current availability or why I couldn't find it.
What Clessidra Does
Clessidra isn't a recreation of Final Countdown. It brings a countdown and a bucket list together, so you can think about what you want to do with the time you have.
Count Down Your Remaining Time
Enter your birthday and set your Expected Lifespan, and the app shows the time remaining until that age. You can switch between years, months, weeks, days, and hours.
The same period can feel different when you see it in years rather than weeks. You can choose whichever unit makes it more tangible for you.
The Expected Lifespan is a personal reference point that you set yourself. Clessidra does not predict your actual lifespan.
See Your Life One Week at a Time
The life grid represents each week as a square, giving you a view of the time behind you and ahead of you.
It also marks weeks when you completed goals or have deadlines. Tap a week to see the entries for it.
This connects the view of your time with a record of what you want to do and what you've already done.
Give “Someday” a Deadline
Bucket list entries can have categories, priorities, and deadlines set by date or age. You can also leave the deadline unset.
For example:
- Visit a place you've always wanted to see before the end of this year
- Try something new before turning 40
- Write down something you might want to do someday, without choosing a deadline yet
You can group entries by the decade of life their deadlines fall in, such as your 30s or 40s. This helps you organize both what you want to do and which stage of life you want to do it in.
A deadline of “before 40” means the day before your 40th birthday, so that entry appears in your 30s.
Break Larger Goals Into Smaller Steps
Each goal can have smaller steps, with a separate due date for each step.
For a trip abroad, that might look like:
- Choose a country
- Work out a budget and travel dates
- Book flights and accommodation
You can keep track of the next action alongside the larger goal. You can also choose the timing and time of day for reminders as the goal's deadline approaches.
Look Back With Joy Points and Reflections
You can give each goal Joy Points, a score from 1 to 10 for how happy achieving it would make you. The score is optional.
When you complete a goal, you can record the date and your reflections, and adjust its Joy Points if you want to.
The reflection view shows completed goals and a chart of your total points by year or age. You can also overlay a forecast that includes points from unfinished goals with deadlines, showing what the totals would look like if you completed them.
It gives you a record of what you've achieved alongside the things you're still looking forward to.
Keep Goals in Sight With Widgets
Home Screen and Lock Screen widgets show your remaining time and bucket list. You can also put the life grid on your Home Screen.
That makes your time and goals visible during everyday phone use, without opening the app.
How It's Built
The interface uses SwiftUI. The bucket list is stored with SwiftData and synced through CloudKit.
Your bucket list, birthday, and Expected Lifespan sync between iPhones and iPads signed in to iCloud with the same Apple Account.
Data stays on your devices and in your own iCloud. There's no separate Clessidra account to create, and no advertising.
The app also supports JSON backup export and import, plus CSV export for spreadsheets.
Date calculations, sorting, and other logic live in a separate Swift package, ClessidraCore, outside the UI. I can run swift test on macOS to check date-related behavior quickly.
Here are four implementation details I paid attention to.
Store Calendar Dates at Midnight UTC
A birthday, deadline, or completion date is a calendar date rather than a specific moment. If you store local midnight as an absolute timestamp, interpreting it in another time zone can shift it to the previous or next day. Midnight on April 1 in Japan is still March 31 in Los Angeles.
Clessidra encodes the year, month, and day as midnight UTC. When reading it, the app extracts those components using a UTC calendar and reconstructs midnight on that date in the device's time zone.
Simply using noon UTC and interpreting it as a local date wouldn't solve the problem: in New Zealand during daylight saving time (UTC+13), it would already be the next day.
Share an App Group Store With Widgets
The SwiftData store lives in an App Group container. Widgets open it read-only, with CloudKit disabled. The main app handles synchronization.
Before introducing the App Group, the store lived in the app's own directory. To migrate existing data, the app copies the database and its sidecar files (-wal and -shm) into a temporary directory, then moves the sidecars into place before moving the database itself.
Putting the database file in place last makes its presence at the destination the marker for a completed migration. If migration fails, the app cleans up the destination files and opens the old store instead.
Sync Settings Through iCloud's Key-Value Store
The bucket list uses SwiftData and CloudKit, while settings such as the birthday and Expected Lifespan use NSUbiquitousKeyValueStore. The app reconciles these values with the shared UserDefaults used by widgets at launch and when changes arrive from another device.
Two details matter here:
- When a setting changes, Clessidra sends only the changed key. Sending every key could overwrite a newer value from another device that hasn't reached this device yet.
- When the user deletes all data, Clessidra removes the birthday and lifespan keys from iCloud, but keeps the onboarding completion flag and sets it to
false. Removing that flag too would make another device with old settings interpret the cloud state as “not set up yet” and upload those settings again.
Work Within CloudKit's Model Constraints
SwiftData models synced with CloudKit need default values or optional attributes, and can't use @Attribute(.unique). Because of that, Clessidra checks for duplicate IDs at launch and after remote store changes, assigning new IDs where needed.
Try Clessidra
Clessidra runs on iPhone and iPad with iOS or iPadOS 18 or later. It is available in English, Japanese, Korean, Traditional Chinese, French, Spanish, and Italian.
Every feature is free. Optional in-app tips support development and don't unlock additional features.
If you read Die With Zero and went looking for Final Countdown, or want to organize your bucket list alongside a view of your remaining time, I'd be glad if you gave it a try.
Top comments (0)