Damage Formula Issue

I've searched the forum, couldn't find an answer here.

I want an attack to reduce the target's HP to 1. The formula I used is:

b.mhp - (b.hp + 1)

But the attack does 1 damage. Crits are off, and variability is set to 0%.

Even weirder, when I reduced the target's HP by 500 before the attack, the attack suddenly did 499 damage.

So I am kind of stumped.

Thank you in advance for the assistance.
How about just:

b.hp - 1
How about just:

b.hp - 1

...

That... also works.

Wow, I feel dumb. Thank you for the help.

Original thread: https://forums.rpgmakerweb.com/threads/damage-formula-issue.155860/