Calculates a dog's age in dog years.