W4 3173 then FR 3430 at Madrid
Bucharest → Madrid → Agadir
Timetable, Madrid time
17:50W4 3173 from Bucharest at the gate
09:55FR 3430 to Agadir leaves the gate
16 h 05 apart on the timetable, overnight
FR 3430 leaves 16 h 05 after W4 3173 arrives on the timetable: more than half a day, so not a connection we count.