how to find the scale factor