BA 1451 then BA 189 at Heathrow
Edinburgh → London → Newark
Timetable, London time
16:40BA 1451 from Edinburgh at the gate
16:25BA 189 to Newark leaves the gate
23 h 45 apart on the timetable, overnight
BA 189 leaves 23 h 45 after BA 1451 arrives on the timetable: more than half a day, so not a connection we count.