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