UA 5563 then GG 9723 at O'Hare
Madison → Chicago → Tokyo Narita
Timetable, Chicago time
19:05UA 5563 from Madison at the gate
10:30GG 9723 to Tokyo Narita leaves the gate
15 h 25 apart on the timetable, overnight
GG 9723 leaves 15 h 25 after UA 5563 arrives on the timetable: more than half a day, so not a connection we count.