You need to create a buffer variable to hold the value of the number of ammo you can use.
It’s all about pure functions (get a variable). After setting the AmmoFull value in the second formula, you are already using the new AmmoFull value, and therefore Ammo does not have the value you expected.

