calculate hysteresis method 2 50% upscale vs downscale