FR 2767 then CA 866 at Madrid
Prague → Madrid → Beijing
Timetable, Madrid time
17:45FR 2767 from Prague at the gate
17:30CA 866 to Beijing leaves the gate
23 h 45 apart on the timetable, overnight
CA 866 leaves 23 h 45 after FR 2767 arrives on the timetable: more than half a day, so not a connection we count.