I need to create a table that calculates the value of share holdings at the end of each month and then totals the share values for each corresponding period. What formulas do I use?