def annual_growth(step: int, rate: float) -> float:
    """
    Calculates the rate of compounding for the number of years input
    :param step: Number of periods to compound
    :param rate: Growth rate
    :return: Compounding multiple
    """
    return (1 + rate) ** step