UA 5254 then UA 3376 at O'Hare
Rapid City → Chicago → St Louis
Timetable, Chicago time
17:03UA 5254 from Rapid City at the gate
11:00UA 3376 to St Louis leaves the gate
17 h 57 apart on the timetable, overnight
UA 3376 leaves 17 h 57 after UA 5254 arrives on the timetable: more than half a day, so not a connection we count.