public function getCurrentRealmsIncrement(): int
    {
        $currentDifficulty = $this->getValue();
        $maximalDifficulty = $this->getMaximal();
        if ($currentDifficulty <= $maximalDifficulty) {
            return 0;
        }
        $additionalDifficulty = $currentDifficulty - $maximalDifficulty;
        $steps = $additionalDifficulty / $this->getDifficultyAddition()->getDifficultyAdditionPerStep();
        $realmsIncrement = $steps * $this->getDifficultyAddition()->getRealmsChangePerAdditionStep();

        return (int)\ceil($realmsIncrement); // even a tiny piece of a higher realm means the lower realm is not able to create that formula
    }
public function getCurrentRealmsIncrement(): int
    {
        $currentDifficulty = $this->getValue();
        $maximalDifficulty = $this->getMaximal();
        if ($currentDifficulty <= $maximalDifficulty) {
            return 0;
        }
        $additionalDifficulty = $currentDifficulty - $maximalDifficulty;
        $steps = $additionalDifficulty / $this->getDifficultyAddition()->getDifficultyAdditionPerStep();
        $realmsIncrement = $steps * $this->getDifficultyAddition()->getRealmsChangePerAdditionStep();

        return (int)\ceil($realmsIncrement); // even a tiny piece of a higher realm means the lower realm is not able to create that formula
    }
public function getCurrentRealmsIncrement ( ) : int { $ currentDifficulty = $ this -> getValue ( ) ; $ maximalDifficulty = $ this -> getMaximal ( ) ; if ( $ currentDifficulty <= $ maximalDifficulty ) { return 0 ; } $ additionalDifficulty = $ currentDifficulty - $ maximalDifficulty ; $ steps = $ additionalDifficulty / $ this -> getDifficultyAddition ( ) -> getDifficultyAdditionPerStep ( ) ; $ realmsIncrement = $ steps * $ this -> getDifficultyAddition ( ) -> getRealmsChangePerAdditionStep ( ) ; return ( int ) \ ceil ( $ realmsIncrement ) ; // even a tiny piece of a higher realm means the lower realm is not able to create that formula }
How much have to be realms increased to manage total difficulty

@return int
How much have to be realms increased to manage total difficulty