Derives moles / grams from chemical formulae