UA 1275 then NH 8407 at LAX
Cancún → Los Angeles → Tokyo Narita
Timetable, Los Angeles time
17:34UA 1275 from Cancún at the gate
16:40NH 8407 to Tokyo Narita leaves the gate
23 h 06 apart on the timetable, overnight
NH 8407 leaves 23 h 06 after UA 1275 arrives on the timetable: more than half a day, so not a connection we count.