user: I'm considering some investment scenarios and would like to understand the potential growth of my capital over different time frames and varying conditions. Could you calculate the real value of an initial investment of $1,000,000 with an annual addition of $1,000 over 3 years at a 10% annual return, considering inflation rates of 1% for the first year and 4% for the next two years? Also, for a second scenario, starting with $500,000 and adding $500 annually over 5 years with a 7% return and inflation rates of 2%, 3%, 2%, 3%, and 2%, what will the value be? For a smaller initial sum of $250,000 with a $2,000 annual contribution over 7 years at a 5% return, with inflation alternating between 1% and 2%, what is the adjusted value? Lastly, with an $800,000 initial investment, adding $1,500 yearly for 10 years at an 8% return, considering inflation oscillating between 1% and 2% every other year, what would be the final adjusted value?

Available functions:
name: calculate_investment_value
description: Calculates the value of an investment over time.
parameters: type: dict
properties: initial_investment: type: integer
description: The initial investment amount.
annual_contribution: type: float
description: The annual contribution amount.
years: type: integer
description: The number of years to calculate the investment value for.
annual_return: type: float
description: The annual return rate, ranging from 0 to 1.
inflation_rate: type: array
items: type: float
description: The inflation rate for each year in percentage, ranging from 0 to 1.
adjust_for_inflation: type: boolean
default: yes
description: Whether to adjust the investment value for inflation.
required: initial_investment
annual_contribution
years
annual_return
inflation_rate