round_by function

Rounding by a specific interval.