Did you ever need to adjust some time series for the count of #EU members in a given year? I did. It turned out to be quite tedious, because I wanted to allow for the fact that not all enlargements happened at the first of January (so the membership count of that year is actually a fraction), and take lap years into account. Brexit included.