What do you mean by replace percent with grams? What are you trying to achieve?