BA 2817 then BA 2642 at Gatwick
Algiers → London → Málaga
Timetable, London time
17:10BA 2817 from Algiers at the gate
14:35BA 2642 to Málaga leaves the gate
21 h 25 apart on the timetable, overnight
BA 2642 leaves 21 h 25 after BA 2817 arrives on the timetable: more than half a day, so not a connection we count.