Here is the calculator
Starting HP:
Starting EP:
HP Loss:
EP Used:
Current HP:
Current EP:
Ok, after getting your current HP/EP, you will then need to transfer that to your Starting HP/EP. If you don't, then you will not be subtracting the losses correctly.