Need Help with this logic - Data Time comparisons for a list

Solution