UA 5425 then KQ 7267 at San Francisco
Monterey → San Francisco → New York JFK
Timetable, San Francisco time
13:15UA 5425 from Monterey at the gatealso LH 8559
10:25KQ 7267 to New York JFK leaves the gatealso BA 8384
21 h 10 apart on the timetable, overnight
KQ 7267 leaves 21 h 10 after UA 5425 arrives on the timetable: more than half a day, so not a connection we count.