AA 1007 then UA 1335 at O'Hare
Charlotte Amalie → Chicago → Buffalo
Timetable, Chicago time
20:00AA 1007 from Charlotte Amalie at the gate
17:51UA 1335 to Buffalo leaves the gate
21 h 51 apart on the timetable, overnight
UA 1335 leaves 21 h 51 after AA 1007 arrives on the timetable: more than half a day, so not a connection we count.