code: def reign_year_to_ad(reign_year: int, reign: int) -> int:
      
      if int(reign) == 10:
          ad = int(reign_year) + 2015
      elif int(reign) == 9:
          ad = int(reign_year) + 1945
      elif int(reign) == 8:
          ad = int(reign_year) + 1928
      elif int(reign) == 7:
          ad = int(reign_year) + 1924
      return ad
docs: Reign year of Chakri dynasty, Thailand