Factors influencing chemical formula formation