Calculate years