Rotate two steppers with LCD menu

Please suggest a way for get accurate speed.

Write some decent code.

When I use this function with LCD menu controlling, motor dose not get accurate speed as calculated.

When you run some code you didn't show, something happens that is not what you want.

But, you couldn't be bothered describing what the code you didn't post actually does, or how that differs from what you want. Well, good luck.