AZ 60 then FR 572 at Madrid
Rome → Madrid → Porto
Timetable, Madrid time
17:10AZ 60 from Rome at the gate
09:20FR 572 to Porto leaves the gate
16 h 10 apart on the timetable, overnight
FR 572 leaves 16 h 10 after AZ 60 arrives on the timetable: more than half a day, so not a connection we count.