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