You need to remember that you'll probably have a lap time in seconds, but you probably need the result in hours.
Here's an example of how to do it. The other night I took a Lotus V8 around Monaco GP (Cote d'Azur) in 1:48.026, that's
108.026 seconds [
Reference]. Our DB records the track length for that track as
2.07 miles.
That's all the data you need to put in.
Here's the formula,
TrackLength in miles,
LapTime in seconds:
(3600 * (
TrackLength /
LapTime)) =
AvSpeedMPH
Here's the example with the data in;
(3600 * (
2.07 /
108.026)) =
68.983 mph
To summarise;
Divide the
TrackLength (in miles) by the
LapTime (in seconds). Multiply the result by 3600.