Know what your vehicle-width number includes
Body width and mirror-to-mirror width can be different.
Use the dimension relevant to the manoeuvre
Door-opening fit may need mirror width.
Parking clearance needs access
Being physically inside the garage does not guarantee easy door opening.
Add your own comfort margin
A mathematical fit can still be impractical.