The (advanced) formula to calculate damage is this:
DMG = (AWD x (WS + AS / 100 x WS) x PS / 100 x CC / 100 x (CHD + 100) / 100) + (AWD x (WS + AS / 100 x WS) x PS / 100 x (1 - CC / 100))
DMG = Damage you will do
AWD = Average Weapon Damage (don't forget to include your offhand and other items with + average damage)
AS = Attack speed Increase as it is in the Details Tab (10% attack speed = insert 10 into formula)
WS = default Weapon speed
PS = Primary stat (Int for WD and Wizard, ...)
CC = Crit chance (10% crit chance = insert 10 into formula)
CHD = Crit Hit Damage (100% crit hit damage = insert 100 into formula)
actually i just copied my answer to this post: