Google is your friend ;) https://www.tyresizecalculator.com/wheels/wheel-offset

Measurements have to be to the outside lip of the wheel rim not to the tyre bead.