paul-blankenbaker / dough-calc

A simple HTML/JavaScript calculator for working with baker bread dough formulas (recipes)
MIT License
2 stars 0 forks source link

Bread Dough Calculator

In the summer of 2018, my wife and I decided to take a small course in bread making. We enjoyed the class and I found it interesting in the way that bread makers describe their recipes as formulas to simplify scaling.

While it is not difficult to create an Excel spread sheet to manipulate these formulas, I decided to create a simplified web page that anyone can use.

On-line Tool

If you have access to the internet, you don't need to install anything to use this simple calculator. An on-line version that will run in your web browser can be found at:

http://redali.com/dough-calc

Getting Started

Using The Tool

Once you have your initial ingredients and percentage values set, you can start playing with the numbers to answer the following types of questions:

Total Mass

This field is used to set and view the total mass of the dough. This is the final value you should measure after combining all of the ingredients.

If you change this value, then the values in the Mass (g) and Wt (oz) columns will be adjusted accordingly.

The "Percentage" Column

This column is used to enter the formula (recipe) for your bread dough. Bread dough formulas are defined in arbitrary units that can be scaled to real world values.

By convention the total value for all of the flour should be 100. This allows bakers to think of all other ingredients as a percentage of flour weight. For example, if the flour value is set to 100 and the salt value is set to 2, then the amount of salt in the recipe will be 2% of the mass of the flour in the recipe (for every 100 grams of flour, there will be 2 grams or salt).

Here is an example formula:

Ingredient Mass (g) Wt (oz) Percent
White 888.3 31.33 100.00
Yeast 5.8 0.20 0.65
Salt 17.8 0.63 2.00
Water 604.4 21.32 68.00

If your formula has multiple flour rows, then you will typically want to set those rows so that the sum of the flour rows is 100. For example if you want the flour to be composed of 90% white and 10% rye, you would enter:

Ingredient Mass (g) Wt (oz) Percent
White 800.0 28.22 90.00
Wheat 88.9 3.14 10.00
Yeast 5.8 0.20 0.65
Salt 17.8 0.63 2.00
Water 604.4 21.32 68.00

The Mass/Weight Columns

Bakers prefer using mass or weight instead of volumes when mixing ingredients. This reduces issues related to density. The mass and weight columns display how much of each ingredient will be required in both grams and ounces.

If you change the mass or weight of an ingredient, the Total Mass will be recalculated and the mass and weight of all ingredients will be adjusted to maintain the same percentages.

This is not a common use case, but if you only had 500 g of flour left to work with, it will figure out the values for the rest of your ingredients for you.

Presets

There are some "preset" links available below the table on the right side labeled as numeric digits ("0", "1", ...). Clicking on a preset link will load in one of the default recipes. Hover over the a preset link for a tool tip describing the recipe.

Actions

There are some action links available below the table on the right side.

"l" Link

This action will open a link with the current recipe encoded in the URL. This allows a specific recipe to be book marked, copy/pasted or embedded into an HTML document.

"+" Add Row

Clicking on this action adds a new row to the end of the table.

Easter Egg Changing the label of a row to "+" can be used to insert a row in the table. The row will be inserted above and the original label will be restored.

"-" Remove Row

Clicking on this action removes the last row from the table. There is no confirmation - you click it, it's gone!

Easter Egg Changing the label of a row to "-" can be used to delete a specific row.

Modifying The Tool

This is a rather simple tool with the following design goals:

Feel free to modify, extend or completely re-factor.