Fixed EBS costs computation

This bugfix resolves the problem approched in the issue #65 about EBS costs computation problems.