Adjusted the time notification conditional statement