UA 5902 then UA 1776 at O'Hare
Madison → Chicago → Philadelphia
Timetable, Chicago time
06:20UA 5902 from Madison at the gate
18:24UA 1776 to Philadelphia leaves the gate
12 h 04 apart on the timetable
UA 1776 leaves 12 h 04 after UA 5902 arrives on the timetable: more than half a day, so not a connection we count.