To expand on what Jim said, the purpose of the dye is to bind, and give a different color, in the presence of calcium or magnesium.
The liquid you add drop wise is an even stronger calcium or magnesium binder that first binds calcium or magnesium free in solution, then, as you add more, it rips away the Ca/Mg from the colored molecule, changing its color. When you have added enough of the dropwise titrant to bind every calcium or magnesium, then the colored dye won't have any left, and you see the color change. So the exact amount of the dye doesn't matter except as it allows you to see the color change. It is the amount of the other liquid added that is critical, and the number of calcium ions equals the number of strong binders you added to get to the endpoint.