The attack rate is calculated using the formula: Attack Rate (%) = (Number of new cases / Population at risk) x 100 For example, if 50 people out of a population of 200 were infected during a disease outbreak, the attack rate would be (50/200) x 100 = 25%.