UA 648 then B6 316 at San Francisco
Newark → San Francisco → New York JFK
Timetable, San Francisco time
09:30UA 648 from Newark at the gatealso VA 8516, NZ 9121
09:06B6 316 to New York JFK leaves the gatealso EY 8328, JU 8514, AT 9559
23 h 36 apart on the timetable, overnight
B6 316 leaves 23 h 36 after UA 648 arrives on the timetable: more than half a day, so not a connection we count.