Added function to calculate total spent and functionality to recalculate budget after amounts are spent