Function calculateWellboreBounds