calculate hysteresis method 2 divide by 3