Mean and score calculation