Gives the nearest X unit of time