def METHOD_NAME(
    results_df: pd.DataFrame, groups_df: pd.DataFrame
) -> pd.DataFrame:
    """
    Calculate the progress df for every day based on results and groups df.
    The Calculate the contributors for every day based on results df.
    Merge both dataframes.
    Return project history dataframe.
    Parameters
    ----------
    results_df
    groups_df
    """
    # calculate progress by date
    progress_by_date_df = get_progress_by_date(results_df, groups_df)
    # calculate contributors by date
    contributors_by_date_df = get_contributors_by_date(results_df)
    # merge contributors and progress
    project_history_df = progress_by_date_df.merge(
        contributors_by_date_df, left_on="day", right_on="day"
    )
    return project_history_df