UA 1598 then WN 2366 at Boston
Newark → Boston → Baltimore
Timetable, Boston time
15:50UA 1598 from Newark at the gate
15:30WN 2366 to Baltimore leaves the gate
23 h 40 apart on the timetable, overnight
WN 2366 leaves 23 h 40 after UA 1598 arrives on the timetable: more than half a day, so not a connection we count.