U2 7838 then KL 643 at Schiphol
Edinburgh → Amsterdam → New York JFK
Timetable, Amsterdam time
17:20U2 7838 from Edinburgh at the gate
17:05KL 643 to New York JFK leaves the gate
23 h 45 apart on the timetable, overnight
KL 643 leaves 23 h 45 after U2 7838 arrives on the timetable: more than half a day, so not a connection we count.