calculate years range in calendar view