FR 5898 then EI 5792 at Madrid
Torino → Madrid → Dublin
Timetable, Madrid time
17:35FR 5898 from Torino at the gate
16:10EI 5792 to Dublin leaves the gate
22 h 35 apart on the timetable, overnight
EI 5792 leaves 22 h 35 after FR 5898 arrives on the timetable: more than half a day, so not a connection we count.