UA 934 then BA 1464 at Heathrow
Newark → London → Edinburgh
Timetable, London time
20:35UA 934 from Newark at the gate
20:00BA 1464 to Edinburgh leaves the gate
23 h 25 apart on the timetable, overnight
BA 1464 leaves 23 h 25 after UA 934 arrives on the timetable: more than half a day, so not a connection we count.