UA 940 then AA 9602 at Heathrow
Newark → London → Miami
Timetable, London time
10:25UA 940 from Newark at the gate
08:00AA 9602 to Miami leaves the gate
21 h 35 apart on the timetable, overnight
AA 9602 leaves 21 h 35 after UA 940 arrives on the timetable: more than half a day, so not a connection we count.