def calculate_total_user_pp(osu_scores: list, member_id: str, osu_tracking: dict):
    """ Calculates the user's total PP. """
    total_pp = 0
    for i, osu_score in enumerate(osu_scores):
        total_pp += osu_score["pp"] * (0.95 ** i)
    total_pp_without_bonus_pp = 0
    for osu_score in osu_tracking[member_id]["scores"]["score_list"]:
        total_pp_without_bonus_pp += osu_score["weight"]["pp"]
    bonus_pp = osu_tracking[member_id]["new"]["statistics"]["pp"] - total_pp_without_bonus_pp
    return total_pp + bonus_pp