1. Rename your function.
  2. Add a column in your spreadsheet for Driving Distance.
  3. Add =drivingDistance() into a cell in this column.
  4. Add return miles to your code.
  5. Comment out the variables and pass the variables in from the sheet.
  6. Pass variables in from the spreadsheet.
  7. Replicate the formula in the rest of the column.