I was just wondering, how does the hero formula work for attacking another hero. (I'm not talking about mayor stuff - that's already well known)

If say I have : 10000 warriors and 10000 archers vs a person with equal tech. and bonuses and he has 10000 warriors and 10000 archers

BUT my hero has 100 attack and is level 32 and his hero has 50 attack and is level 32
(I know who would win) I was just wondering if their is a formula for calculating the amount of losses less or more depending on your and your opponents heroes' attack/level