calculateCircleProgress = (value) => {
  const radius = 40;
  const c = Math.PI * (radius * 2);

  if (value < 0) {
    value = 0;
  }
  if (value > 100) {
    value = 100;
  }

  return ((100 - value) / 100) * c;
}
Calculates progress along the boundary of the circle, i.e. its circumference.

@param {number} value The rank value to calculate progress for.
@returns {number} Progress value.