UA 299 then UA 2126 at Newark
Atlanta → New York → Montego Bay
Timetable, New York time
08:13UA 299 from Atlanta at the gate
08:04UA 2126 to Montego Bay leaves the gate
23 h 51 apart on the timetable, overnight
UA 2126 leaves 23 h 51 after UA 299 arrives on the timetable: more than half a day, so not a connection we count.