# How to calculate distance between two counters

Hi to all!

Two questions :

a) There is a way to calculate the distance in hexes between two counters on a map with hexagonal grid without using the LOS thread?

b) There is a function to calculate the square root of an integer value?

Panther 2010

I haven’t tried it to be sure, but you’d need a Calculated Property and then see if the Beanshell expression for a square root is supported. Looks like it should be:

``Math.sqrt(your-property-name-here)``

Hello JoelCFC25,