def find_nth(string, substring, n):
    """Finds the index of the nth instance of the given substring from the given string"""
    location = string.index(substring)
    while n > 1:
        location = string.index(substring, location+len(substring))
        n -= 1
    return location