calcPerformanceCriterion function

Calculate the performance criterion