Calculate goal

total and average