Initial denominator formula

reworked and rebased from issue #18441