Count backward from a fixed wake time to two bedtimes separated by 90-minute sleep intervals.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
The entered sleep-onset delay is removed first, followed by either 6 × 90 minutes for 9 hours or 5 × 90 minutes for 7.5 hours. The clock wraps through midnight and returns times without dates; 90 minutes is the midpoint of the approximate 80-to-100-minute cycle range, not a measured personal cycle.
Wake time: 07:00 Minutes to fall asleep: 15
Bedtimes: 21:45, 23:15 Cycles: 6, 5 Recommended: 21:45 for 6 cycles Hours if recommended: 9
Work and school alarms can be counted backward into candidate lights-out times, sleep diaries compare scheduled time in bed with onset delay, and shift schedules use the previous-day result when the clock wraps past midnight.