3O 641 then QR 3516 at Barcelona
Tangier → Barcelona → Málaga
Timetable, Barcelona time
22:203O 641 from Tangier at the gate
18:05QR 3516 to Málaga leaves the gate
19 h 45 apart on the timetable, overnight
QR 3516 leaves 19 h 45 after 3O 641 arrives on the timetable: more than half a day, so not a connection we count.