Regarding margins for Futures trade

Hello,

When we buy futures contract for few days we are required to pay initial and span margin. Below is my query regarding the same.

Let’s say I buy 1 lot (500) of HDFC at 1800 and the closing price is 1790. Therefore, at the close I’m in a loss of Rs 5,000.

In this case will Rs 5,000 will be deducted from the initial and span margins or additional 5,000 will be deducted from my account?

Regards.

This question has been asked many times. Someone can post the link or you can search it.