W4 3173 then FR 3614 at Madrid
Bucharest → Madrid → Prague
Timetable, Madrid time
17:50W4 3173 from Bucharest at the gate
06:10FR 3614 to Prague leaves the gate
12 h 20 apart on the timetable, overnight
FR 3614 leaves 12 h 20 after W4 3173 arrives on the timetable: more than half a day, so not a connection we count.