Sleep debt calculator

Model: debt = max(0, (target hours − average slept) × nights). If you sleep more than your target, we show zero debt (not a “sleep credit” bank). For persistent insomnia, talk to a clinician.