Wastewater treatment design calculation formula