FR 5712 then FR 2015 at Madrid
Budapest → Madrid → Lanzarote
Timetable, Madrid time
01:10FR 5712 from Budapest at the gate
21:55FR 2015 to Lanzarote leaves the gate
20 h 45 apart on the timetable
FR 2015 leaves 20 h 45 after FR 5712 arrives on the timetable: more than half a day, so not a connection we count.