sewage treatment plant calculation formula