FR 2514 then FR 7284 at Madrid
Bucharest → Madrid → Torino
Timetable, Madrid time
16:00FR 2514 from Bucharest at the gate
10:10FR 7284 to Torino leaves the gate
18 h 10 apart on the timetable, overnight
FR 7284 leaves 18 h 10 after FR 2514 arrives on the timetable: more than half a day, so not a connection we count.