QF 7554 then UA 398 at O'Hare
New York JFK → Chicago → New York LaGuardia
Timetable, Chicago time
17:30QF 7554 from New York JFK at the gate
15:00UA 398 to New York LaGuardia leaves the gate
21 h 30 apart on the timetable, overnight
UA 398 leaves 21 h 30 after QF 7554 arrives on the timetable: more than half a day, so not a connection we count.