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