Added function to calculate the total sales for a month and add them into a dictionary where the key is the year and month