W4 6311 then FR 3814 at Madrid
Milan → Madrid → Bologna
Timetable, Madrid time
09:10W4 6311 from Milan at the gate
22:10FR 3814 to Bologna leaves the gate
13 h apart on the timetable
FR 3814 leaves 13 h after W4 6311 arrives on the timetable: more than half a day, so not a connection we count.