http://forum.ucool.com/showthread.php?36387-Stats-Calculator&p=292265&viewfull=1#post292265