It refers to a single tax year
Plus of course your centre of interests. There are quite a few factors that they take into consideration; the ones you mentioned and also a few more. It's a good idea to keep boarding passes etc. That saved me a very big bill a few years ago.
One problem with that is that the Urzad Skarbowy make quite arbitrary decisions which you have to argue about later.