F9 4567 then UA 5257 at Denver
St Louis → Denver → Billings
Timetable, Denver time
21:30F9 4567 from St Louis at the gate
20:48UA 5257 to Billings leaves the gate
23 h 18 apart on the timetable, overnight
UA 5257 leaves 23 h 18 after F9 4567 arrives on the timetable: more than half a day, so not a connection we count.