Make sure to add = recipe.flour * 4;, where recipe.flour is the self-assignment part of the code.
= recipe.flour * 4;
recipe.flour