How the calculator works
For knitting, it takes the head circumference, removes the ease for the fit you chose, and multiplies by your stitch gauge. The result is rounded to your stitch multiple. It then works out how long a classic 8-point crown takes at your row gauge, so you know when to start decreasing.
For crochet worked from the top down, the crown is a flat circle. Its diameter is the finished circumference divided by π (about 3.14), so you increase until the circle measures that much across, then work even to the hat height.