Get Distance to Box

Returns the distance to a given box