I am trying to write an equation where it calculates the sum of the previous index and the current index and then divides it by the current index. So the equation (Current value