IB 534 then U2 3210 at Madrid
Lisbon → Madrid → Edinburgh
Timetable, Madrid time
19:10IB 534 from Lisbon at the gatealso LA 1531, VY 5065, QR 6544
16:30U2 3210 to Edinburgh leaves the gate
21 h 20 apart on the timetable, overnight
U2 3210 leaves 21 h 20 after IB 534 arrives on the timetable: more than half a day, so not a connection we count.