UA 940 then BA 342 at Heathrow
Newark → London → Nice
Timetable, London time
10:25UA 940 from Newark at the gate
10:05BA 342 to Nice leaves the gate
23 h 40 apart on the timetable, overnight
BA 342 leaves 23 h 40 after UA 940 arrives on the timetable: more than half a day, so not a connection we count.