To determine the amount of gain