Added expression for margin size

declared a new variable with an expression that calculates the
percentage for the size of the margin