BY 2497 then IB 988 at Manchester
Málaga → Manchester → Madrid
Timetable, Manchester time
22:30BY 2497 from Málaga at the gate
14:35IB 988 to Madrid leaves the gate
16 h 05 apart on the timetable, overnight
IB 988 leaves 16 h 05 after BY 2497 arrives on the timetable: more than half a day, so not a connection we count.