FR 5494 then FR 2051 at Madrid
Milan Bergamo → Madrid → Palma de Mallorca
Timetable, Madrid time
21:40FR 5494 from Milan Bergamo at the gate
17:25FR 2051 to Palma de Mallorca leaves the gate
19 h 45 apart on the timetable, overnight
FR 2051 leaves 19 h 45 after FR 5494 arrives on the timetable: more than half a day, so not a connection we count.