UA 798 then UA 4440 at Newark
Charlotte → New York → Pittsburgh
Timetable, New York time
08:43UA 798 from Charlotte at the gate
08:26UA 4440 to Pittsburgh leaves the gate
23 h 43 apart on the timetable, overnight
UA 4440 leaves 23 h 43 after UA 798 arrives on the timetable: more than half a day, so not a connection we count.