Show related code for calc_next_comm_period.

calc_next_comm_period