Refined inequalities for the distance in metric spaces