AA 5031 then UA 4390 at Dulles
Morgantown → Washington → Portland (Maine)
Timetable, Washington time
11:34AA 5031 from Morgantown at the gate
08:28UA 4390 to Portland (Maine) leaves the gate
20 h 54 apart on the timetable, overnight
UA 4390 leaves 20 h 54 after AA 5031 arrives on the timetable: more than half a day, so not a connection we count.