W4 3171 then FR 3011 at Madrid
Bucharest → Madrid → Palma de Mallorca
Timetable, Madrid time
09:45W4 3171 from Bucharest at the gate
06:15FR 3011 to Palma de Mallorca leaves the gate
20 h 30 apart on the timetable, overnight
FR 3011 leaves 20 h 30 after W4 3171 arrives on the timetable: more than half a day, so not a connection we count.