How is the margin requirement calculated?