IB 717 then BA 360 at Heathrow
Madrid → London → Lyon
Timetable, London time
14:55IB 717 from Madrid at the gate
14:45BA 360 to Lyon leaves the gate
23 h 50 apart on the timetable, overnight
BA 360 leaves 23 h 50 after IB 717 arrives on the timetable: more than half a day, so not a connection we count.