Task PS-17 (calculate total spending and average per day)