How many generations apart must two people be to not be related?

All humans are related to the same ancestors of we go back far enough but obviously we don't consider all humanity as our relatives so how many generations apart do we have to be to be no longer related?

Like 10 generations apart?

How many generations apart must two people be to not be related?
Post Opinion