code: public function getPercent(): float
      {
          $amount = $this->getAmount();
  
          if (0 < $this->sellingPrice) {
              return round($amount * 100 / $this->sellingPrice, 2);
          }
  
          return 0;
      }
docs: Returns the percentage.
  
  @return float