Here is a little helper function in PHP to round an integer number to the nearest X, where X can be any other integer number. You can specify to force to round up, round down or whichever is closest (round up if it is the same in either direction).
Continue reading PHP: Rounding Numbers to the Nearest 5,10,12 or X