UA 1275 then B6 1024 at LAX
Cancún → Los Angeles → New York JFK
Timetable, Los Angeles time
17:34UA 1275 from Cancún at the gate
16:30B6 1024 to New York JFK leaves the gate
22 h 56 apart on the timetable, overnight
B6 1024 leaves 22 h 56 after UA 1275 arrives on the timetable: more than half a day, so not a connection we count.