In the different Stack Exchange reputation leagues, like this one below,
there are nice $\color{green}{\text{+green}}$ or $\color{red}{\text{-red}}$ or $\color{grey}{\text{grey=0}}$ numbers called "change". What is the algorithm behind those figures?