If I buy Nifty Call option first and then write call option at same strike price, then how much margin is required in trading account on intraday as well as overnight basis?

you can calculate here… plzz check this link…

https://zerodha.com/margin-calculator/SPAN/