FR 635 then FR 664 at Dublin
Cardiff → Dublin → Birmingham (UK)
Timetable, Dublin time
15:25FR 635 from Cardiff at the gate
13:40FR 664 to Birmingham (UK) leaves the gate
22 h 15 apart on the timetable, overnight
FR 664 leaves 22 h 15 after FR 635 arrives on the timetable: more than half a day, so not a connection we count.