FR 5494 then U2 3210 at Madrid
Milan Bergamo → Madrid → Edinburgh
Timetable, Madrid time
21:40FR 5494 from Milan Bergamo at the gate
20:50U2 3210 to Edinburgh leaves the gate
23 h 10 apart on the timetable, overnight
U2 3210 leaves 23 h 10 after FR 5494 arrives on the timetable: more than half a day, so not a connection we count.