Calculate optimal bedtimes based on 90-minute sleep cycles and track weekly sleep debt from Apple Health data.
An average sleep cycle lasts approximately 90 minutes, cycling through Light (Core), Deep, and REM sleep stages.