FR 2628 then FR 404 at Madrid
London Stansted → Madrid → Palma de Mallorca
Timetable, Madrid time
23:20FR 2628 from London Stansted at the gate
20:00FR 404 to Palma de Mallorca leaves the gate
20 h 40 apart on the timetable, overnight
FR 404 leaves 20 h 40 after FR 2628 arrives on the timetable: more than half a day, so not a connection we count.