From the starting position of course....
Using the same example
Your stepper motor etc starts from a known position (home position), advances so many steps to travel the 5mm (say 5000 steps)- drills a hole say, moves to 10mmm, drills another etc etc all the way to 20mm from the starting...