W6 4401 then FR 3430 at Madrid
Sofia → Madrid → Agadir
Timetable, Madrid time
19:50W6 4401 from Sofia at the gate
09:55FR 3430 to Agadir leaves the gate
14 h 05 apart on the timetable, overnight
FR 3430 leaves 14 h 05 after W6 4401 arrives on the timetable: more than half a day, so not a connection we count.