QR 3743 then LA 5745 at Barcelona
Milan → Barcelona → Porto
Timetable, Barcelona time
14:55QR 3743 from Milan at the gate
12:20LA 5745 to Porto leaves the gate
21 h 25 apart on the timetable, overnight
LA 5745 leaves 21 h 25 after QR 3743 arrives on the timetable: more than half a day, so not a connection we count.