FR 7157 then FR 2971 at Dublin
Madrid → Dublin → Kaunas
Timetable, Dublin time
20:25FR 7157 from Madrid at the gate
17:55FR 2971 to Kaunas leaves the gate
21 h 30 apart on the timetable, overnight
FR 2971 leaves 21 h 30 after FR 7157 arrives on the timetable: more than half a day, so not a connection we count.