altered a calculation method per review comments
altered a calculation method per review comments


Former-commit-id: 1f0b834a287fabd0b03205a419e29eb69e3b6f8b
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine