DL 5064 then DL 1371 at Detroit
Buffalo → Detroit → St Louis
Timetable, Detroit time
13:30DL 5064 from Buffalo at the gate
12:40DL 1371 to St Louis leaves the gate
23 h 10 apart on the timetable, overnight
DL 1371 leaves 23 h 10 after DL 5064 arrives on the timetable: more than half a day, so not a connection we count.