[eng] We report a comprehensive and systematic study of two halide perovskites by using density functional theory calculations. Two structurally different perovskites have been studied, which are cubic CH3NH3PbI3 (MAPI) and HC(NH2)2PbI3 (FAPI). We have used twenty-four exchange-correlation functionals, ranging from three LDA functionals, ten GGA functionals, seven MGGA and four hybrids among others have been tested, in order to determine the accuracy of these methods for the prediction of band gaps. Moreover, we have studied several possibilities to tackle the calculations of perovskites. That is, we have tested Numerical Atomic Orbitals with All Electron Relativistic calculations and compared to Plane Wave framework with pseudopotentials and relativistic corrections. Moreover, we have studied different k-points set, pseudopotentials types, with and without cell optimizations, with and without dispersion corrections and with and without Spin Orbit coupling. The results show that PBE and RPBE exhibit a good compromise between the accuracy of the results and computational demands.