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