Changed formula for score calculation