Diesel fuel is cheaper than gasoline, and that's the reason why diesel cars are more expensive, but more rentable. Use this calculator to check how many years it will take for the diesel car to start saving money in comparation with the gasoline car.
The default values are from the diesel and gas models of an AUDI A3 car, in November 2018.