I am currently developing an app that calculates the time difference (in seconds) between the driver in front and behind of the current player.
I know the total distance driven by all cars, same with the distance driven that lap, lap distance, speed and X and Y coordinates on the track. Click here for the full list of data
With this information, I can some how know the time from the other two cars. How would I do this mathematically?