https://www.bragitoff.com/2018/02/calculate-band-gap-scf-calculation-quantum-espresso/
How to calculate the band gap from SCF calculation? [QUANTUM ESPRESSO]