W4 5151 then W4 3174 at Madrid
Tirana → Madrid → Bucharest
Timetable, Madrid time
21:30W4 5151 from Tirana at the gate
18:35W4 3174 to Bucharest leaves the gate
21 h 05 apart on the timetable, overnight
W4 3174 leaves 21 h 05 after W4 5151 arrives on the timetable: more than half a day, so not a connection we count.