Dan Preston, the chief executive of Metromile, an insurer based in San Francisco that monitors mileage and sets premiums according to the number of miles policyholders drive. Credit Jason Henry for The New York Times