U2 7820 then U2 7899 at Schiphol
Milan → Amsterdam → Valencia
Timetable, Amsterdam time
22:00U2 7820 from Milan at the gate
16:10U2 7899 to Valencia leaves the gate
18 h 10 apart on the timetable, overnight
U2 7899 leaves 18 h 10 after U2 7820 arrives on the timetable: more than half a day, so not a connection we count.