Adjust length formulas