determine year range dynamically