samourai-
I have this saved from some calculations I did for AOK. I'll copy and paste it here. Note that some of the calculations are just designed to figure out the damage/second number that ES is providing us with for AOM. This actually figures out how much damage a ranged unit does to a melee unit before dying, not the amount of time it takes to kill one. It also assumes a different accuracy for when a unit is approaching and when it is still.
...
Formula for damage done by missile unit 1 against melee unit 2:
(Damage done while melee unit is approaching) +
(Damage per second engaged)*(Seconds alive engaged)
Damage done while melee unit is approaching =
(Time approaching)*(Damage per second approaching)
Damage per second engaged =
(Damage per hit)*(Accuracy engaged)/(Seconds per attack)
Seconds alive engaged = (Hitpoints)/(Damage taken per second engaged)
Time approaching = (Range)/(Opp. Movement Rate)
Damage per second approaching =
(Damage per hit)*(Accuracy)/(Seconds per attack)
Damage per hit = (Piercing attack)-(Opp. Piercing armor)
Damage taken per second engaged =
(Damage taken per hit)/(Opp. seconds per attack)
Damage taken per hit = (Opp. melee attack)-(Melee armor)
[(PT1-PA2)/FR1*MA1*RA1/MR2]+[(PT1-PA2)/FR1*SA1*(HP1/((AT2-AR1)/FR2))] =
(PT1-PA2)/FR1*(RA1*MA1/MR2+HP1*SA1/((AT2-AR1)/FR2))AT = Melee attack
AR = Melee armor
FR = Firing rate in seconds/attack
HP = Hitpoints
PT = Piercing Attack
PA = Piercing Armor
MA = Accuracy against moving target
SA = Accuracy against stationary target.
RA = Range
MR = Movement rate