3O 641 then QR 3629 at Barcelona
Tangier → Barcelona → Santander
Timetable, Barcelona time
22:203O 641 from Tangier at the gate
20:15QR 3629 to Santander leaves the gate
21 h 55 apart on the timetable, overnight
QR 3629 leaves 21 h 55 after 3O 641 arrives on the timetable: more than half a day, so not a connection we count.