docs: def widthratio(value, max_value, max_width):
      """
      Does the same like Django's `widthratio` template tag (scales max_width to factor value/max_value)
      """
      ratio = float(value) / float(max_value)
      return int(round(ratio * max_width))