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