script to calculate molecular weight of chemical combinations