code to build standard salt formulas