calculating the number of power halves in slant range