IB 713 then BA 872 at Heathrow
Madrid → London → Krakow
Timetable, London time
09:15IB 713 from Madrid at the gate
06:55BA 872 to Krakow leaves the gate
21 h 40 apart on the timetable, overnight
BA 872 leaves 21 h 40 after IB 713 arrives on the timetable: more than half a day, so not a connection we count.