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