How to Calculate Linearity Uncertainty