formula for total_rating in organization model