UA 5254 then UA 5191 at O'Hare
Rapid City → Chicago → Lancaster
Timetable, Chicago time
17:03UA 5254 from Rapid City at the gate
08:50UA 5191 to Lancaster leaves the gate
15 h 47 apart on the timetable, overnight
UA 5191 leaves 15 h 47 after UA 5254 arrives on the timetable: more than half a day, so not a connection we count.