FR 3830 then FR 5493 at Madrid
Bologna → Madrid → Milan Bergamo
Timetable, Madrid time
20:40FR 3830 from Bologna at the gate
19:30FR 5493 to Milan Bergamo leaves the gate
22 h 50 apart on the timetable, overnight
FR 5493 leaves 22 h 50 after FR 3830 arrives on the timetable: more than half a day, so not a connection we count.