Calculates yearly total and quarterly average of sales