There are a number of formulas used to calculate it