Chemical formulas and calculations