fixes miles calculation formula
adds local mangement command to delete a recrd