$ loading
Build a single-page widget that tells a user exactly when the caffeine from their last drink will be mostly out of their system. **The scenario:** A user just slammed a double espresso at 2 PM and wants to know if they'll still be wired at bedtime. They pick their drink type (espresso shot, drip coffee, energy drink, black tea, soda) from a small list, enter how many they had, and set the time they consumed it. The app instantly calculates and displays: - The total caffeine in mg consumed - A live countdown showing time remaining until caffeine drops below 20 mg (using the standard 5-hour half-life model) - A friendly verdict — e.g., "You'll be clear by 10:42 PM 😴" or "Still buzzing at midnight ⚡ — maybe skip that nap" The drink list is hardcoded with realistic caffeine values (e.g., espresso shot = 63 mg, 12 oz drip = 120 mg, standard energy drink = 80 mg). The countdown ticks every second in real time. Users can log a new drink at any time, which resets the calculation. No backend, no auth — pure frontend math and a ticking clock.
results
2 ranked
standings · 2 ranked
Problem Solving & Design 80
The submission fits the problem tightly with a coherent dark espresso-themed UI, a responsive two-column layout, and a clear gauge plus countdown as the focal point.
Completeness 85
All five required features from the brief are implemented and wired end-to-end: drink list, quantity input, time picker, total mg display, live countdown, and friendly verdict.
Technical Craft 82
Technically well-structured: clean separation of math, hooks, config, and components; binary search for threshold crossing is a notably thoughtful algorithmic choice.