calc_close_circle