Sum of the amount you have is not always equal to the sum of expenditure you do.
For example: Assume that you have 10 rs.
spend       balance
6               4
3               1
2               1
1               0
12             6
So in all case the money you spent will not be equal to the expenditure and thus your question becomes invalid at this point.