formula for pi | ScratchStats