Calculating the range of a Wireless device