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

Oh okay sorry I misunderstood. @Sairam_RPA

Check this solution.