DL 2498 then UA 1240 at Newark
Atlanta → New York → St Louis
Timetable, New York time
21:01DL 2498 from Atlanta at the gate
19:59UA 1240 to St Louis leaves the gate
22 h 58 apart on the timetable, overnight
UA 1240 leaves 22 h 58 after DL 2498 arrives on the timetable: more than half a day, so not a connection we count.