from datetime import datetime, date
from dateutil.relativedelta import relativedelta
birthday_date = datetime.strptime("01.02.1990", "%d.%m.%Y").date()
if birthday_date > date(1990, 1, 1) and birthday_date < date(1995 1, 31):
birthday_date += relativedelta(years=146)