# no imports allowed! We want you to solve this problem with loops!

def double_compound(principal, interest_rate):
    """
    Given a principal amount and a given interest rate, calculate the
    - the minimum number of years until the money has (at least) doubled
    - the account balance after that many years, rounded to 2 decimal places

    Inputs:
        principal (float) - amount initially deposited
        interest_rate (float) - number between 0 and 1 representing the
                interest rate in question, where .2 represents 20% interest.

    Returns:
        A tuple containing the account balance and number of years as described
        above. If there is no way to double the account balance, return a tuple
        containing None for both values.
    """
    pass # your code here


if __name__ == "__main__":
    # Local testing -- feel free to add your own tests as well!
    print(f"Got {double_compound(100.00, .05)=}, Expected=(207.89, 15)")
    # Note: amount should be rounded to 2 decimal places!
