IB 52 then QY 932 at Madrid
Málaga → Madrid → Tangier
Timetable, Madrid time
15:10IB 52 from Málaga at the gate
12:10QY 932 to Tangier leaves the gate
21 h apart on the timetable, overnight
QY 932 leaves 21 h after IB 52 arrives on the timetable: more than half a day, so not a connection we count.