UA 23 then FR 1025 at Dublin
Newark → Dublin → Budapest
Timetable, Dublin time
07:30UA 23 from Newark at the gate
06:10FR 1025 to Budapest leaves the gate
22 h 40 apart on the timetable, overnight
FR 1025 leaves 22 h 40 after UA 23 arrives on the timetable: more than half a day, so not a connection we count.