How to determine wastewater volume and composition