def calculate_array_indents(indent=2, last_level=0):
    """
    Determine the start and end indents for a sub-array.
    :param indent: How much are we indenting on each go
    :param last_level: Recursion depth of the calling function
    :return: [int, int]
    """
    val = indent
    if last_level > 0:
        val *= last_level
        val += indent

    return [indent, 0] if last_level == 0 else [indent*last_level+indent, indent*last_level]