def calculate_points(entry, live_data):
    """Calculates the live score for an entry
    Args:
        entry (obj): Entry data.
        live_data (obj): The live data for the gameweek.
    Returns:
        obj: Entry data with live score.
    """
    entry["live_points"] = entry["total_points"]
    for player in entry["picks"]:
        if player["multiplier"] > 0:
            entry["live_points"] += next(
                player_data["stats"]["total_points"]
                for player_data in live_data["elements"]
                if player_data["id"] == player["element"]
            ) * player["multiplier"]
    return entry