AA 2501 then UA 5344 at O'Hare
Newark → Chicago → Spokane
Timetable, Chicago time
08:44AA 2501 from Newark at the gate
08:40UA 5344 to Spokane leaves the gate
23 h 56 apart on the timetable, overnight
UA 5344 leaves 23 h 56 after AA 2501 arrives on the timetable: more than half a day, so not a connection we count.