Divide a number by X, round it and then multiply to X back.

As an example, X = 5: