Added if statement if hour > 24