How to design an agricultural building to prevent runoff