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