Getting error in Margin Calculator. Help me resolve the issue