This online calculator uses math to
calculate the exact win probabilities and average length of battle in number of attacks (which is the same as number of half turns in the absence of multiple attacks, frenzy, or squads). The average survivors is the average number of life or figures left assuming that the figure or squad wins.
Source: miniaturewargaming.com