UA 3901 then UA 7949 at San Francisco
Hong Kong → San Francisco → Tokyo Narita
Timetable, San Francisco time
16:34UA 3901 from Hong Kong at the gate
11:05UA 7949 to Tokyo Narita leaves the gate
18 h 31 apart on the timetable, overnight
UA 7949 leaves 18 h 31 after UA 3901 arrives on the timetable: more than half a day, so not a connection we count.