UA 1777 then KQ 7267 at San Francisco
Newark → San Francisco → New York JFK
Timetable, San Francisco time
12:27UA 1777 from Newark at the gatealso VA 8165, NZ 9131
10:25KQ 7267 to New York JFK leaves the gatealso BA 8384
21 h 58 apart on the timetable, overnight
KQ 7267 leaves 21 h 58 after UA 1777 arrives on the timetable: more than half a day, so not a connection we count.