move variable into calc_years method