code: public static function createFinalFromGross(Amount $gross): Amount
      {
          $final = new Amount(
              $gross->getCurrency(),
              $gross->getBase(),
              $gross->getBase(),
              0,
              $gross->getBase(),
              $gross->getTax(),
              $gross->getTotal()
          );
          foreach ($gross->getTaxAdjustments() as $t) {
              $final->addTaxAdjustment($t);
          }
  
          return $final;
      }
docs: Creates the final result from the given gross result.
  
  @param Amount $gross
  
  @return Amount