$Output = \dfrac{Input - Threshold}{Ratio} + Threshold$