Fix calculation.
Merge pull request #3363 from mrunalp/bugs/996948

Merged by openshift-bot