Design calculations in wastewater treatment