FR 2767 then FR 2436 at Madrid
Prague → Madrid → Rome
Timetable, Madrid time
20:15FR 2767 from Prague at the gate
20:00FR 2436 to Rome leaves the gate
23 h 45 apart on the timetable, overnight
FR 2436 leaves 23 h 45 after FR 2767 arrives on the timetable: more than half a day, so not a connection we count.