FR 7157 then FR 668 at Dublin
Madrid → Dublin → Birmingham (UK)
Timetable, Dublin time
23:00FR 7157 from Madrid at the gate
12:20FR 668 to Birmingham (UK) leaves the gate
13 h 20 apart on the timetable, overnight
FR 668 leaves 13 h 20 after FR 7157 arrives on the timetable: more than half a day, so not a connection we count.