print and calculate year number