code: public static Resource finalizePadding(
        Resource containerResource, Resource padding, int paddingPercentage) {
      double cpuPadding = Math.max(padding.getCpu(),
          containerResource.getCpu() * paddingPercentage / 100);
      ByteAmount ramPadding = ByteAmount.fromBytes(Math.max(padding.getRam().asBytes(),
          containerResource.getRam().asBytes() * paddingPercentage / 100));
      ByteAmount diskPadding = ByteAmount.fromBytes(Math.max(padding.getDisk().asBytes(),
          containerResource.getDisk().asBytes() * paddingPercentage / 100));
  
      return new Resource(cpuPadding, ramPadding, diskPadding);
    }
docs: Finalize padding by taking Math.max(containerResource * paddingPercent, paddingValue)
  
  @param containerResource max container resource
  @param padding padding value
  @param paddingPercentage padding percent
  @return finalized padding amount