Made a calculation constant.

The old version would do the same calculation over and over again. Since this calculation contains no variables it can be changed to a constant.