import datetime from months import * now = datetime.datetime.now() while 1: year = now.year month = now.month day = now.day dob = raw_input("Year: ") month1 = raw_input("Month: ") day1 = raw_input("Day: ") dob = int(dob) year = int(year) month1 = int(month1) day = int(day) est = divmod((year * 12 + month) - (dob * 12 + month1), 12) print est