some advanced math | ScratchStats