U2 7838 then U2 8674 at Schiphol
Edinburgh → Amsterdam → London Gatwick
Timetable, Amsterdam time
21:55U2 7838 from Edinburgh at the gate
18:45U2 8674 to London Gatwick leaves the gate
20 h 50 apart on the timetable, overnight
U2 8674 leaves 20 h 50 after U2 7838 arrives on the timetable: more than half a day, so not a connection we count.