W4 3171 then FR 5056 at Madrid
Bucharest → Madrid → Dakhla
Timetable, Madrid time
09:45W4 3171 from Bucharest at the gate
06:10FR 5056 to Dakhla leaves the gate
20 h 25 apart on the timetable, overnight
FR 5056 leaves 20 h 25 after W4 3171 arrives on the timetable: more than half a day, so not a connection we count.