calculate the circumference