EC 7152 then LA 5782 at Barcelona
Milan → Barcelona → Porto
Timetable, Barcelona time
14:25EC 7152 from Milan at the gate
13:00LA 5782 to Porto leaves the gate
22 h 35 apart on the timetable, overnight
LA 5782 leaves 22 h 35 after EC 7152 arrives on the timetable: more than half a day, so not a connection we count.