Margin Cost Calculator