Calc the next alarm time