UX 1047 then W4 6159 at Fiumicino
Madrid → Rome → Sarajevo
Timetable, Rome time
17:25UX 1047 from Madrid at the gate
15:05W4 6159 to Sarajevo leaves the gate
21 h 40 apart on the timetable, overnight
W4 6159 leaves 21 h 40 after UX 1047 arrives on the timetable: more than half a day, so not a connection we count.