BA 184 then BA 1438 at Heathrow
Newark → London → Edinburgh
Timetable, London time
06:30BA 184 from Newark at the gate
06:25BA 1438 to Edinburgh leaves the gate
23 h 55 apart on the timetable, overnight
BA 1438 leaves 23 h 55 after BA 184 arrives on the timetable: more than half a day, so not a connection we count.