How long should you etch tooth structure with a total-etch bonding agent?

Typically, enamel and dentin are etched for 15 seconds. Some products recommend etching enamel for 20-30 seconds and dentin for 15-20 seconds. Rinsing for 15 seconds is necessary to remove the residue of phosphoric acid and smear layer.