Pinwheel calculator