You can read the zerodha varsity chapter Option Strategies which is explained in detail from the below link