It helps to know a little math.