FR 9602 then FR 1814 at Fiumicino
Madrid → Rome → Porto
Timetable, Rome time
10:05FR 9602 from Madrid at the gate
07:45FR 1814 to Porto leaves the gate
21 h 40 apart on the timetable, overnight
FR 1814 leaves 21 h 40 after FR 9602 arrives on the timetable: more than half a day, so not a connection we count.