Change formula for calculating accuracy