def check_if_goal_reached(df, invest_goal):
    """
    Checks if the user defined goal montly dividends goal is reached by the investment done so far

    Args:
        df (DataFrame): The DataFrame that should be checked
        invest_goal (int): Investment Goal that the user defined (invest_goal)

    Returns:
        Boolean: Returns True if investgoal is achieved, returns False otherwise
    """
    total_div = df["Total Dividends"].sum()
    if total_div >= invest_goal:
        return True
    else:
        return False