Formula Used
Converted value = Source value × Conversion factor
For affine conversions such as temperature, an offset is also applied.
How the formula is applied
The calculation links Grams (g) and Ingredient to conversion result. Dividing grams by the assumed grams per cup gives a volume quantity. Changing the ingredient changes that result even when mass stays fixed.