W6 2371 then W4 5152 at Madrid
Budapest → Madrid → Tirana
Timetable, Madrid time
19:15W6 2371 from Budapest at the gate
16:50W4 5152 to Tirana leaves the gate
21 h 35 apart on the timetable, overnight
W4 5152 leaves 21 h 35 after W6 2371 arrives on the timetable: more than half a day, so not a connection we count.