Refactored earlyAlarmTime