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