The formula for calculating NNH is straightforward:
NNH = 1 / ARI
Here, ARI is calculated as the difference in the event rates between the treatment (or exposed) group and the control (or unexposed) group. The event rate is the proportion of individuals who experience the adverse event in each group.