BA 8341 then UA 573 at San Francisco
New York JFK → San Francisco → Denver
Timetable, San Francisco time
23:54BA 8341 from New York JFK at the gate
20:23UA 573 to Denver leaves the gatealso AC 4081
20 h 29 apart on the timetable, overnight
UA 573 leaves 20 h 29 after BA 8341 arrives on the timetable: more than half a day, so not a connection we count.