KL 1504 then U2 7837 at Schiphol
Madrid → Amsterdam → Edinburgh
Timetable, Amsterdam time
15:40KL 1504 from Madrid at the gate
11:40U2 7837 to Edinburgh leaves the gate
20 h apart on the timetable, overnight
U2 7837 leaves 20 h after KL 1504 arrives on the timetable: more than half a day, so not a connection we count.