The new valve looks like a Moen Positemp.
the positemp will have a minimum and maximum that the valve can be placed. You will have ~ 3/4" of play. the positemp positioning is very forgiving. If you still want a measurement, Have the front surface of the black cover stick out approx 3/4" from the rough stud.