inner circle calculation