VY 7612 then BA 2642 at Gatwick
Barcelona → London → Málaga
Timetable, London time
14:45VY 7612 from Barcelona at the gate
14:35BA 2642 to Málaga leaves the gate
23 h 50 apart on the timetable, overnight
BA 2642 leaves 23 h 50 after VY 7612 arrives on the timetable: more than half a day, so not a connection we count.