UA 367 then AS 40 at San Francisco
Washington → San Francisco → New York JFK
Timetable, San Francisco time
01:29UA 367 from Washington at the gatealso LH 7530, VA 8388, NZ 9181
23:00AS 40 to New York JFK leaves the gatealso QR 2080, QR 2137
21 h 31 apart on the timetable
AS 40 leaves 21 h 31 after UA 367 arrives on the timetable: more than half a day, so not a connection we count.