I\'m trying to find the optimum margin output based on the two images you can see below
What I have so far is the code below, which seemed to work onl