Position 9
A VIN is 17 characters: 3 for the world manufacturer identifier, 5 for the vehicle descriptor, 1 check character, then 8 identifying the individual vehicle. Position 10 encodes the model year and position 11 the assembly plant.
The check character sits in the middle rather than at the end. Its own weight is 0, so it contributes nothing to the sum it verifies.
Add the check character
Paste the whole 17-character VIN in add check digit mode and position 9 is replaced with the correct character. 1M8GDM9A0KP042788 returns 1M8GDM9AXKP042788.
A VIN that fails is usually a transcription problem, most often 0 read as O or 1 read as I. Neither letter is legal in a VIN, so those characters are rejected before the arithmetic starts.