EC 7154 then QR 3623 at Barcelona
Milan → Barcelona → Salerno
Timetable, Barcelona time
17:25EC 7154 from Milan at the gate
07:10QR 3623 to Salerno leaves the gate
13 h 45 apart on the timetable, overnight
QR 3623 leaves 13 h 45 after EC 7154 arrives on the timetable: more than half a day, so not a connection we count.