WN 598 then AA 28 at LAX
Denver → Los Angeles → New York JFK
Timetable, Los Angeles time
15:15WN 598 from Denver at the gate
14:40AA 28 to New York JFK leaves the gate
23 h 25 apart on the timetable, overnight
AA 28 leaves 23 h 25 after WN 598 arrives on the timetable: more than half a day, so not a connection we count.