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