FR 6723 then W4 3174 at Madrid
Marrakesh → Madrid → Bucharest
Timetable, Madrid time
22:15FR 6723 from Marrakesh at the gate
18:35W4 3174 to Bucharest leaves the gate
20 h 20 apart on the timetable, overnight
W4 3174 leaves 20 h 20 after FR 6723 arrives on the timetable: more than half a day, so not a connection we count.