AA 8574 then FR 5493 at Madrid
Porto → Madrid → Milan Bergamo
Timetable, Madrid time
14:45AA 8574 from Porto at the gate
09:45FR 5493 to Milan Bergamo leaves the gate
19 h apart on the timetable, overnight
FR 5493 leaves 19 h after AA 8574 arrives on the timetable: more than half a day, so not a connection we count.