import datetime now = datetime.datetime.now() while 1: year = now.year month = now.month dob = raw_input("Year: ") month1 = raw_input("Month: ") dob = int(dob) year = int(year) month1 = int(month1) estyear = (year - dob) print estyear