Distance between elements of a semigroup and estimates for derivatives