Model the Perf pipe and crushed stone as a reservoir. Volume in the pipe + 33% voids in the stone. This off line water quality/quantity device will be prone to clogging without adequate pre-treatment to remove sediment, trash etc.
Are you including soil percolation?