I need to perform some calculations on selected years, which are different for different locations based on additional calculations: From the following sample data frame, were I