AZ 202 then BA 872 at Heathrow
Rome → London → Krakow
Timetable, London time
09:40AZ 202 from Rome at the gate
06:05BA 872 to Krakow leaves the gate
20 h 25 apart on the timetable, overnight
BA 872 leaves 20 h 25 after AZ 202 arrives on the timetable: more than half a day, so not a connection we count.