FR 494 then FR 676 at Dublin
Madrid → Dublin → Cardiff
Timetable, Dublin time
00:55FR 494 from Madrid at the gate
22:25FR 676 to Cardiff leaves the gate
21 h 30 apart on the timetable
FR 676 leaves 21 h 30 after FR 494 arrives on the timetable: more than half a day, so not a connection we count.