Creating conditions based on time using 12-Hour format