Update calculateAttack.php

fixed division by zero