FR 5316 then UX 1143 at Madrid
Rome → Madrid → Porto
Timetable, Madrid time
16:05FR 5316 from Rome at the gate
15:00UX 1143 to Porto leaves the gatealso KU 6049
22 h 55 apart on the timetable, overnight
UX 1143 leaves 22 h 55 after FR 5316 arrives on the timetable: more than half a day, so not a connection we count.