year-view: fix integer rounding issues