Calculate the herd immunity threshold from the basic reproduction number (R0) of an infectious disease.