How updated calculate field automatically

I created “ice” field but when I change the value it does not calculate in the “amount” field but f I calculate the “qty” field if you perform both operations

I modified the taxes_and_totals.js

Thanks.

Purchase invoice in taxes_and_totals