IB 786 then W4 6314 at Madrid
Berlin → Madrid → Milan
Timetable, Madrid time
22:55IB 786 from Berlin at the gatealso VY 5103, AA 8686
21:15W4 6314 to Milan leaves the gate
22 h 20 apart on the timetable, overnight
W4 6314 leaves 22 h 20 after IB 786 arrives on the timetable: more than half a day, so not a connection we count.