BA 873 then AT 807 at Heathrow
Krakow → London → Casablanca
Timetable, London time
18:05BA 873 from Krakow at the gate
18:00AT 807 to Casablanca leaves the gate
23 h 55 apart on the timetable, overnight
AT 807 leaves 23 h 55 after BA 873 arrives on the timetable: more than half a day, so not a connection we count.