DL 876 then DL 5051 at Detroit
Santa Ana → Detroit → Buffalo
Timetable, Detroit time
19:40DL 876 from Santa Ana at the gate
14:01DL 5051 to Buffalo leaves the gate
18 h 21 apart on the timetable, overnight
DL 5051 leaves 18 h 21 after DL 876 arrives on the timetable: more than half a day, so not a connection we count.