Put equations in for total and weekly average.