Merge pull request #39967 from rohitwaghchaure/fixed-subcontracting-pr-10107

fix: float division by zero