Fix gain calculation

Gabriel Fedel requested to merge ICSHWI-9402 into master

ICSHWI-9402

Merge request reports