Influence of various factors on the performance of gypsum scaling retardants