It is part of the annual accounts along with the balance sheet and the notes, and Spanish accountants call it PyG for short. The step from accounting result to tax due happens in the Impuesto de Sociedades, through the annual modelo 200 return.
Rather have this calculated for you?
kontora generates your tax forms box by box, tells you how much to set aside and reminds you before every deadline.