Attack calculator