How to Set One Variable to Equal the Difference of Two Variables

Here is what I'm trying to do: During my game there is an ongoing war between two armies (simplified to good guys vs bad guys for this). At multiple points the two armies clash and I want to keep a track of each battle's progress on the overall war.

So:

Battle Result = good guys strength - bad guys strength.

Then, because I'm tracking the battles throughout the game it be:

Battle Result + Current War Status = New War Status (that part is easy and I understand, just putting it in there to show the progression)

If it isn't clear, the player's actions will affect the values of each side, which is why I just can't predetermine the results.

My current set up works, but is less than ideal, and looks like this:

Conditional Branch

   If good guys > bad guys

      +1 to War Status

   If good guys > (bad guys +5)

       +2 to War Status

   If good guys > (bad+10)

        +3 to War Status

etc

I suppose that I could theoretically add a conditional branch for every possibility, but I'm anticipating a lot of number fluctuation. Having the battles give out results in 'groups' (defeat, minor victory, major victory, etc) will work, but ideally I could just have the result calculated by the difference of the variables.

I apologize if I missed the answer for this in any of the variables tutorials.

Thanks for any help!
1) control variable[result] = [good guys] (SET to variable for good guys)


2) control variable[result] -= [bad guys] (SUB variable for bad guys)


You just need two variable control command with different settings for any mathematical operation
My brain is struggling to grasp writing an equation like that, but it works, so thank you! 
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-set-one-variable-to-equal-the-difference-of-two-variables.23592/