Formula applied
The exact method behind this answer
CalculationTime keeps the method visible so the number can be checked instead of blindly trusted.
Minutes until alarm = (alarm minutes after midnight − current minutes after midnight + 1,440) mod 1,440.- Apply the formulaMinutes until alarm = (alarm minutes after midnight − current minutes after midnight + 1,440) mod 1,440.7h 45m until alarmCurrent 22:45 to alarm 06:30. Prep buffer 45 min leaves 420 min before the get-ready cutoff. 51 full 9-minute snooze block(s) fit before alarm time.