code: def calculate_month(birth_date):
      
      year = int(birth_date.strftime('%Y'))
      month = int(birth_date.strftime('%m')) + ((int(year / 100) - 14) % 5) * 20
  
      return month
docs: Calculates and returns a month number basing on PESEL standard.