IB 400 then FR 3876 at Madrid
Barcelona → Madrid → Tangier
Timetable, Madrid time
08:05IB 400 from Barcelona at the gatealso CX 1830, LL 3000
06:10FR 3876 to Tangier leaves the gate
22 h 05 apart on the timetable, overnight
FR 3876 leaves 22 h 05 after IB 400 arrives on the timetable: more than half a day, so not a connection we count.