Percentage composition and formula analysis