Calculation error fixed