UA 5197 then UA 1239 at O'Hare
Albany (New York) → Chicago → Rochester (ROC)
Timetable, Chicago time
15:45UA 5197 from Albany (New York) at the gate
13:55UA 1239 to Rochester (ROC) leaves the gate
22 h 10 apart on the timetable, overnight
UA 1239 leaves 22 h 10 after UA 5197 arrives on the timetable: more than half a day, so not a connection we count.