IB 466 then FR 3876 at Madrid
Vigo → Madrid → Tangier
Timetable, Madrid time
10:30IB 466 from Vigo at the gate
06:10FR 3876 to Tangier leaves the gate
19 h 40 apart on the timetable, overnight
FR 3876 leaves 19 h 40 after IB 466 arrives on the timetable: more than half a day, so not a connection we count.