W6 2391 then FR 9493 at Madrid
Budapest → Madrid → Pisa
Timetable, Madrid time
08:55W6 2391 from Budapest at the gate
21:45FR 9493 to Pisa leaves the gate
12 h 50 apart on the timetable
FR 9493 leaves 12 h 50 after W6 2391 arrives on the timetable: more than half a day, so not a connection we count.