So, it has changed over the years, but it used to be {roof(basePay + $5, floor(mileage) * 2)} so with the $3.50 base pay of the day, anything under 5 miles had a max showing of $8.50, and then anything over would be like, $10+. It still roughly works that way, but the constants change