Margin rules application