AV 2351 then BA 1650 at San Francisco
Denver → San Francisco → New York JFK
Timetable, San Francisco time
23:09AV 2351 from Denver at the gate
15:53BA 1650 to New York JFK leaves the gate
16 h 44 apart on the timetable, overnight
BA 1650 leaves 16 h 44 after AV 2351 arrives on the timetable: more than half a day, so not a connection we count.