EW 3180 then FR 9602 at Madrid
Prague → Madrid → Rome
Timetable, Madrid time
13:05EW 3180 from Prague at the gate
09:10FR 9602 to Rome leaves the gate
20 h 05 apart on the timetable, overnight
FR 9602 leaves 20 h 05 after EW 3180 arrives on the timetable: more than half a day, so not a connection we count.