One of the essential challenges of tandem solar cells is designing and adjusting the current-matched tandem structures with high efficiency and stability. Nitride-based wide band gap semiconductors, owing to their high stability and high resistance against the cosmic rays, are appropriate elements to apply as the top cell of tandem solar cells. On the other hand, the organic-inorganic hybrid perovskites are emerging materials with exclusive electronic properties such as tunable band gap, low cost, simple manufacturing process, and efficient charge transport properties, making them capable candidates to be used in tandem layered structures. The aim of this paper is to adjust and optimize the performance of a two-terminal tandem solar cell consisting of InxGa1-xN as the top cell and a FAPbIyBr3-y as the bottom cell. We have studied the effect of different practical parameters such as the indium molar of the top cell, iodine molar of the bottom cell, the thickness of each layer, threading dislocation density of InxGa1-xN, and surface texturing effect on the performance of the two-terminal tandem structure. Because of the prominence of current matching problem in two-terminal tandem structures, we have determined the optimum situation for maximum light harvesting along with the minimum value of current matching factor. In the optimum situation, the current matching factor of 0.15 mA/cm2 leads to the power conversion efficiency of 25.17% for the device.