formula for calculating the perimeter of a fan