How much funds required to sell call/put option? How the calculation works?

For futures, it is fixed % on your contract value, say 5%+3%,
But for options it is a complex calculation and hence to be done only with span calculator