BA 1421 then BA 424 at Heathrow
Inverness → London → Málaga
Timetable, London time
14:20BA 1421 from Inverness at the gate
12:50BA 424 to Málaga leaves the gate
22 h 30 apart on the timetable, overnight
BA 424 leaves 22 h 30 after BA 1421 arrives on the timetable: more than half a day, so not a connection we count.