U2 7838 then U2 7899 at Schiphol
Edinburgh → Amsterdam → Valencia
Timetable, Amsterdam time
17:20U2 7838 from Edinburgh at the gate
16:05U2 7899 to Valencia leaves the gate
22 h 45 apart on the timetable, overnight
U2 7899 leaves 22 h 45 after U2 7838 arrives on the timetable: more than half a day, so not a connection we count.