This obligation is set out in article 201 bis of Law 58/2003 (Ley General Tributaria), available at boe.es.
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.