Function that calculates values used in later score reporting