Hi Use this method
And sum the outer boundry-sum of inner boundry
sum the outer boundry-sum of inner boundry