Below are some resources necessary if you're struggling. Including the official videos from the Royal Marines, those boring nav lectures.
A link to the full playlistFancy way of saying we'll measure a distance between two grids, just using maths.
To simplify what we are doing a bit to not blow minds, this is what we need to do:
Our distance is C in that equation. To get C we need to follow the equation. A squared plus B squared will give us C squared, to get C (our distance) we need to square root C squared.
Method
Example Grids: sx1234 5678 sx8765 4321
To Note: this won't work with grids in different grid squares so only use this formula on grids in the same grid square. E.g. sx to sy will not work sx to sx will sy to sy and so on. I'll update this once I find the extra maths to make this work on different grid squares