Bull call spread margin

I have purchased TCS 2240 CE and sold 2260 PE for august expiry. I want to understand how margins will change as the contract reaches expiry and contract is
(A) One contract lets say 2240 Ce in the money and 2260 CE is out of the money
(B) Both 2240 and 2260 Ce are out of the money
© Both contract are in the money.

An appropriate reply will be appreciated.

Margin variation will depend more on volatility and a little on time. So if there is more volatility then span will be increased accordingly, by how much we can’t say exactly. Also depends on moneyness.

great question, cant believe there no proper answers