The equation features of any word processor can be helpful in calculating chemical formula. However, this feature is mainly used in Maths calculation but Calculation of Science can be done.

To get the desired chemical formula or to balance the equation. Enter the Alphabets and numbers in the box. Eg: H20. You can also use the operator tool for advanced properties. To Calculate and balance you can type. Eg; CO2(g) + 2H20(g). Hence, two should be written in exact method. As per your chemical equation.
1 4 1