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