FR 5712 then FR 7241 at Madrid
Budapest → Madrid → Dublin
Timetable, Madrid time
20:05FR 5712 from Budapest at the gate
09:55FR 7241 to Dublin leaves the gate
13 h 50 apart on the timetable, overnight
FR 7241 leaves 13 h 50 after FR 5712 arrives on the timetable: more than half a day, so not a connection we count.