UA 798 then UA 1240 at Newark
Charlotte → New York → St Louis
Timetable, New York time
07:55UA 798 from Charlotte at the gate
19:59UA 1240 to St Louis leaves the gate
12 h 04 apart on the timetable
UA 1240 leaves 12 h 04 after UA 798 arrives on the timetable: more than half a day, so not a connection we count.