How is the chemical formula for detergent determined?
What is the chemical formula for laundry detergent? How is this determined?