The detention tank will depend on your design flow rate. For example, if your flow rate is 100 Us gallons per minute, a 50 gallon tank will hold the water for half a minute (30sec). Calculate cubic feet per gallon (0.13368cubic feet per gallon x 50 gallons) = 6.684 cubic foot tank. Depending on your space requirements or restrictions, determine your tank dimensions. For example if you tank is 2 feet diameter (V=A x H), A=pid2/4, you tank height will be 2.13 feet high.