categorise bank transactions and calculate totals/averages per time period