W4 6831 then UX 5433 at Madrid
Torino → Madrid → Málaga
Timetable, Madrid time
12:25W4 6831 from Torino at the gate
10:55UX 5433 to Málaga leaves the gatealso AD 6919
22 h 30 apart on the timetable, overnight
UX 5433 leaves 22 h 30 after W4 6831 arrives on the timetable: more than half a day, so not a connection we count.