QR 3522 then 3O 642 at Barcelona
Málaga → Barcelona → Tangier
Timetable, Barcelona time
01:20QR 3522 from Málaga at the gate
23:103O 642 to Tangier leaves the gate
21 h 50 apart on the timetable
3O 642 leaves 21 h 50 after QR 3522 arrives on the timetable: more than half a day, so not a connection we count.