Fix rounding for user defined intervals