UA 3905 then UA 5318 at Houston
Cancún → Houston → Acapulco
Timetable, Houston time
13:29UA 3905 from Cancún at the gate
09:47UA 5318 to Acapulco leaves the gate
20 h 18 apart on the timetable, overnight
UA 5318 leaves 20 h 18 after UA 3905 arrives on the timetable: more than half a day, so not a connection we count.