U2 7838 then U2 2516 at Schiphol
Edinburgh → Amsterdam → London Luton
Timetable, Amsterdam time
14:55U2 7838 from Edinburgh at the gate
13:40U2 2516 to London Luton leaves the gate
22 h 45 apart on the timetable, overnight
U2 2516 leaves 22 h 45 after U2 7838 arrives on the timetable: more than half a day, so not a connection we count.