Input needed on Debuff mechanics

In relation to Hero Equipment and Gem Embedding, I wanted to do a piece on how to balance buffs and debuffs. For that of course, we need some understanding of the “Battle formula”. Now for attack and life this is rather straight forward, something like:

Troops killed = (Life*life buff) / (Attack*attack buff)

life debuffBut the debuffs factor in in some other way, and I would like one of you to fill me in on how, as I cant get my head around it for some odd reason, while my instincts tell me the math cant be that hard. Problem with debuffs of course is that they cannot reduce attack or life of the enemy to zero. So while 100% attack buff doubles your base attack (+100%), a 100% debuff will not reduce base attack or life to zero. So how does it fit in the equation? My guess from the above here is that buff and complementary debuff do not interact directly, like:

Troops killed =
(Life * (life buff(?)life debuff))
(Attack * (attack buff(?)attack debuff))

But more something like:

Troops killed =
((Life * life buff)/(1+life debuff))
((Attack*attack buff)/(1+attack debuff))

So in short, any help on this would be appreciated. Some time ago, someone either commented here or sent me an email with some info on this stuff, but I cannot find it anymore….Thanks in advance!!!