Searching for the error because the equation doesn't work