Second attempt and better approach to year intervals