Added comments to margin variable

Added comments to the margin variable to describe how the expression
calculates the percentage