def calculate_group_percent(group1, group2):
    """Calculate group1's percentage of a two-group total."""
    if group1 + group2 == 0:
        return 0
    else:
        return round(group1 * 100.0 / (group1 + group2), 2)