FR 1024 then FR 816 at Dublin
Budapest → Dublin → Edinburgh
Timetable, Dublin time
13:55FR 1024 from Budapest at the gate
13:45FR 816 to Edinburgh leaves the gate
23 h 50 apart on the timetable, overnight
FR 816 leaves 23 h 50 after FR 1024 arrives on the timetable: more than half a day, so not a connection we count.