code: def get_maxdays(name):
      '''
      Get the maximum age of the password
  
      :param str name: The username of the account
  
      :return: The maximum age of the password in days
      :rtype: int
  
      :raises: CommandExecutionError on user not found or any other unknown error
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' shadow.get_maxdays admin 90
      '''
      policies = _get_account_policy(name)
  
      if 'maxMinutesUntilChangePassword' in policies:
          max_minutes = policies['maxMinutesUntilChangePassword']
          return int(max_minutes) / 24 / 60
  
      return f get_maxdays(name):
      '''
      Get the maximum age of the password
  
      :param str name: The username of the account
  
      :return: The maximum age of the password in days
      :rtype: int
  
      :raises: CommandExecutionError on user not found or any other unknown error
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' shadow.get_maxdays admin 90
      '''
      policies = _get_account_policy(name)
  
      if 'maxMinutesUntilChangePassword' in policies:
          max_minutes = policies['maxMinutesUntilChangePassword']
          return int(max_minutes) / 24 / 60
  
      return 0
docs: Get the maximum age of the password
  
      :param str name: The username of the account
  
      :return: The maximum age of the password in days
      :rtype: int
  
      :raises: CommandExecutionError on user not found or any other unknown error
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' shadow.get_maxdays admin 90