FR 5898 then UX 87 at Madrid
Torino → Madrid → Santo Domingo
Timetable, Madrid time
17:35FR 5898 from Torino at the gate
16:10UX 87 to Santo Domingo leaves the gate
22 h 35 apart on the timetable, overnight
UX 87 leaves 22 h 35 after FR 5898 arrives on the timetable: more than half a day, so not a connection we count.