something missing when calculating Analog values?

Thank you! It worked. I have the correct numbers but still no movement. My apologies I forgot to mention I'm running this on an UNO and using a HBS860H driver for my stepper.