AA 5318 then DL 5845 at Philadelphia
Madison → Philadelphia → Boston
Timetable, Philadelphia time
09:15AA 5318 from Madison at the gate
09:00DL 5845 to Boston leaves the gate
23 h 45 apart on the timetable, overnight
DL 5845 leaves 23 h 45 after AA 5318 arrives on the timetable: more than half a day, so not a connection we count.