Conceptually I'm in favor of this but the state will need good answers to questions of privacy and compliance costs, and of course it must REPLACE, not just add to state gasoline tax.
Check out the calculator link below, but keep in mind that eventual rate per mile is likely to be higher than the one in the calculator:
https://www.codot.gov/programs/ruc
https://www.codot.gov/programs/ruc/programs/ruc/programs/ruc/calculator