BA 873 then BA 1312 at Heathrow
Krakow → London → Aberdeen
Timetable, London time
18:05BA 873 from Krakow at the gate
14:10BA 1312 to Aberdeen leaves the gate
20 h 05 apart on the timetable, overnight
BA 1312 leaves 20 h 05 after BA 873 arrives on the timetable: more than half a day, so not a connection we count.