The addition formula for probability is used to calculate the probability of the union of two or more events.