Just click on the flag and follow the instructions.
This project is a probability calculator for a Minecraft Modpack called Compact Claustrophobia, but it also works for other stuff. It's basically a calculator for things that have a 20% chance of happening. Just click on the flag and follow the instructions, the ingots are the amount of draws (it caps at 441 sorry), the nuggets are the amount of times the draw is successful.