Calculating the years between two Lancia models

Here we hace a calculator that compare two Lancia models and it says the duration (years) in which it will be more profitable

Car 1 price (Euro):

Car 2 price (Euro):

Car fuel price 1 (Euro):

Car fuel price 2 (Euro):

Car consumption 1 (number):

Car consumption 2 (number):

Years: