IB 258 then FR 494 at Madrid
Tocumen → Madrid → Dublin
Timetable, Madrid time
10:40IB 258 from Tocumen at the gatealso BA 4222, QR 5063, LY 9216
07:50FR 494 to Dublin leaves the gate
21 h 10 apart on the timetable, overnight
FR 494 leaves 21 h 10 after IB 258 arrives on the timetable: more than half a day, so not a connection we count.