EC 7154 then FR 8394 at Barcelona
Milan → Barcelona → Budapest
Timetable, Barcelona time
23:15EC 7154 from Milan at the gate
14:20FR 8394 to Budapest leaves the gate
15 h 05 apart on the timetable, overnight
FR 8394 leaves 15 h 05 after EC 7154 arrives on the timetable: more than half a day, so not a connection we count.