FR 9441 then U2 3210 at Madrid
Lisbon → Madrid → Edinburgh
Timetable, Madrid time
23:15FR 9441 from Lisbon at the gate
16:30U2 3210 to Edinburgh leaves the gate
17 h 15 apart on the timetable, overnight
U2 3210 leaves 17 h 15 after FR 9441 arrives on the timetable: more than half a day, so not a connection we count.