How to divide a health variable by same amount of itself when it is constantly changing ?

I think it’s just these two, the other way around

You have to divide the amount remaining by the total amount it can have.