ATK formula is wrong

I think that actually the ingame attack formula is The following : DMG = Weapon Base Damage ATB = Attack Bonus CHR = critical hit rating CHD = critical hit damage VEL = attack speed ATK = [DMG*(1+ATB)*(CHR*CHD)]*(1+VEL) This is always working to calculate ATK but it's a wrong formula.... It should be: ATK = [DMG*(1+ATB)*(1-CHR+CHR*CHD)]*(1+VEL) This... Considering an initial speed of 1 Attack per second. ( hope its All right.... Writing on smartphone is a hell)