Linear z axis calibration

how do I find the correct value for $102 setting . One rotation = 1mm. Nema 23 motor

(Steps per revolution) * (microsteps) / (mm per revolution)

Is that known or measured?
What machine? Controller?

You should calibrate by measuring (a larger distance) anyway.