W6 2371 then FR 2015 at Madrid
Budapest → Madrid → Lanzarote
Timetable, Madrid time
19:15W6 2371 from Budapest at the gate
10:35FR 2015 to Lanzarote leaves the gate
15 h 20 apart on the timetable, overnight
FR 2015 leaves 15 h 20 after W6 2371 arrives on the timetable: more than half a day, so not a connection we count.