IB 564 then FR 3876 at Madrid
Málaga → Madrid → Tangier
Timetable, Madrid time
14:35IB 564 from Málaga at the gatealso CX 1863, AY 4816, VY 5576, QR 6912, BA 7072, PC 7804, QR 8015, AA 8595
13:15FR 3876 to Tangier leaves the gate
22 h 40 apart on the timetable, overnight
FR 3876 leaves 22 h 40 after IB 564 arrives on the timetable: more than half a day, so not a connection we count.