A dairy produced 31.3 liters of milk in 7 hours. To the nearest thousandth of a liter, how much milk, on average, did the dairy produce per hour?