How to calculate f&o margin

How to calculate margin requirements for F&O trading?

F&O margin is the minimum amount required to enter a futures or options position. It is calculated based on the contract value, volatility, and exchange requirements.