Fixed losses_by_period algorithm
Fixed losses_by_period algorithm


Former-commit-id: 5a53101da6b599d5aca2337a38b86d81753ed1ef [formerly da06df054118eccf4901960e44e6c4c7f7cc9a7f]
Former-commit-id: ba9f6451e165766033a0856866ae30dac19af153
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine