UX 1140 then U2 3210 at Madrid
Porto → Madrid → Edinburgh
Timetable, Madrid time
18:15UX 1140 from Porto at the gatealso AM 6853, EY 7521, AD 7870
16:30U2 3210 to Edinburgh leaves the gate
22 h 15 apart on the timetable, overnight
U2 3210 leaves 22 h 15 after UX 1140 arrives on the timetable: more than half a day, so not a connection we count.