UA 5222 then NH 8407 at LAX
Sacramento → Los Angeles → Tokyo Narita
Timetable, Los Angeles time
17:42UA 5222 from Sacramento at the gate
16:40NH 8407 to Tokyo Narita leaves the gate
22 h 58 apart on the timetable, overnight
NH 8407 leaves 22 h 58 after UA 5222 arrives on the timetable: more than half a day, so not a connection we count.