A good damage formula

I’m not gonna lie
I’m pretty bad at math

My game includes a defense and damage stats including damage / defense potion buffs with a leveling system that directly increases the damage and defense
But every formula I make to include these, are unbalanced once a player levels up by a lot and pretty much instantly kills a person with high defense

My current formula

return (damage * finalAttack) / finalDefense

Alright, the best you can do is set a damage cap, and prevent combat between players of vastly different levels, I personally just cap the levels reasonably low though, so that one player can’t have completely overpowering stats.