# Mileage Calculation

## Distance calculation

### Lap maker & lap track status marker scaling factors

When calculating the distance value the mileage calculation can scale the lap distance based on the scaling factors of the lap marker and lap track status marker assigned to each lap. The distance scaling factor would be calculated as:

`Distance scaling factor = 1 * Lap marker distance scaling factor * Lap track status marker distance scaling factor`

The marker scaling is entered by the user in up to three different places, ordered in increasing order of precedence:

In other words, if the value from the session is defined, it takes priority over the value from the event data which, if it is defined, takes priority over the value from the track.

These values are defined in tables as shown in the following example of the event data view:

Initially the tables are empty, but using the add and delete buttons on the ribbon bar. When adding, a window will pop up:

After clicking ok there will be a new row in the table

Enter the desired value in any field - empty values will be ignored. In this example, the scaling factor of the in lap is 0.96 and the scaling factor of the out lap is 0.98.