FR 6723 then FR 2513 at Madrid
Marrakesh → Madrid → Bucharest
Timetable, Madrid time
22:45FR 6723 from Marrakesh at the gate
16:50FR 2513 to Bucharest leaves the gate
18 h 05 apart on the timetable, overnight
FR 2513 leaves 18 h 05 after FR 6723 arrives on the timetable: more than half a day, so not a connection we count.