More fixes

Fixing the formula to calculate reset currency gain