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