Although it's good advice, it's not against the law to drink and drive. Legally, you cannot drive if you are intoxicated. By using a chart that is based on your weight, sex, and the number of drinks you consumed, you can quickly determine if you are legally intoxicated.
Remember, this is only an estimate. If you are close to being drunk, find another way home.