how to calculate scale bar from magnification