Extract methods for calculating the scale necessary to fit/fill one size within another.