how to calculate PI | ScratchStats