Refined if/then condition to include 6AM