UA 3772 then UA 1145 at San Francisco
Colorado Springs → San Francisco → Cancún
Timetable, San Francisco time
23:55UA 3772 from Colorado Springs at the gate
23:00UA 1145 to Cancún leaves the gate
23 h 05 apart on the timetable, overnight
UA 1145 leaves 23 h 05 after UA 3772 arrives on the timetable: more than half a day, so not a connection we count.