UA 5730 then FX 9791 at O'Hare
Madison → Chicago → Anchorage
Timetable, Chicago time
11:57UA 5730 from Madison at the gate
04:00FX 9791 to Anchorage leaves the gate
16 h 03 apart on the timetable, overnight
FX 9791 leaves 16 h 03 after UA 5730 arrives on the timetable: more than half a day, so not a connection we count.