UX 56 then IB 1401 at Madrid
Tocumen → Madrid → Valencia
Timetable, Madrid time
13:05UX 56 from Tocumen at the gatealso MU 4993, EY 7511, HU 8226
11:30IB 1401 to Valencia leaves the gate
22 h 25 apart on the timetable, overnight
IB 1401 leaves 22 h 25 after UX 56 arrives on the timetable: more than half a day, so not a connection we count.