Modified Expenses

I’ve modified some finance datas so i can use finances and profits in the finance system but when i insert an “profit” i get an Error:

 

There are the codes that i modified

 

Modified.zip