Fixed calculation of missing membership years