FR 5494 then FR 2017 at Madrid
Milan Bergamo → Madrid → Lanzarote
Timetable, Madrid time
21:40FR 5494 from Milan Bergamo at the gate
18:30FR 2017 to Lanzarote leaves the gate
20 h 50 apart on the timetable, overnight
FR 2017 leaves 20 h 50 after FR 5494 arrives on the timetable: more than half a day, so not a connection we count.