(a) Where slurry is produced on the farm by housed livestock from dungsteads or from dirty yards, the slurry must be stored in a slurry storage system, liquid digestate storage system, or slurry bags which have sufficient capacity to store the total quantity of slurry likely to be produced in— (i) 26 weeks by housed pigs, or (ii) 22 weeks by housed cattle, taking account of any additional inputs to or exports from the storage as described in paragraph (c), (b) the total quantity of slurry referred to in paragraph (a) is to be calculated by adding up the figures produced for each type of livestock, as applicable, in accordance with the formula for housed pigs or housed cattle, contained in regulation 7(2) of the Action Programme for Nitrate Vulnerable Zones (Scotland) Regulations 2008(a), (c) in calculating the minimum storage capacity necessary to comply with paragraph (a), the following figures must be included in respect of the relevant 26- or 22-week period— (a) S.S.I. 2008/298, amended by S.S.I. 2008/394, S.S.I. 2009/447, S.S.I. 2011/228, S.S.I. 2012/360, S.S.I. 2013/123, S.S.I. 2014/373, S.S.I. 2015/376 and S.S.I. 2021/412. 58 Certified copy from legislation.gov.uk Publishing (i) the quantity of any rainfall (including any fall of snow, hail or sleet) that is likely to enter the system (directly or indirectly) including from dungsteads, silage pits or dirty yards, (ii) the quantity of any cleaning water that is likely to enter the system or slurry bag, (iii) the likely quantity of any imported slurries and liquid digestate added to the system or slurry bag, (iv) the quantity of any slurry exported off farm, (d) where slurry is imported onto the farm, there must be sufficient storage capacity on the farm to store the quantities imported during periods when application is not authorised under activity 18 of this Chapter or would not comply with the requirements of the Action Programme for Nitrate Vulnerable Zones (Scotland) Regulations 2008, (e) the capacity of any facility used for the temporary storage of slurry before it is transferred to a slurry storage tank must be the equivalent of at least 1.5% of the minimum on farm storage capacity in accordance with paragraph (a), (f) the slurry storage system must— (i) comply with paragraphs (g) to (l), (ii) where constructed, or substantially reconstructed or enlarged, on or after 1 September 1991, comply, in addition to paragraph (f)(i), with paragraphs (m) and (n), (iii) if new (including systems constructed from used materials), substantially reconstructed or enlarged, on or after 1 January 2022, have a life expectancy of at least 20 years with proper maintenance, from its construction, reconstruction or enlargement, (g) the base and walls of any slurry storage tank, any channels and reception...