Dog years: How do you calculate a dog's true age?

It's often said that every human year equates to seven dog years, but that is a a bit... rough. How do you calculate it accurately?