Calculates