gasoline price algorithms