Different breeds of dog age at varying speeds. Dogs age at varying speeds at different stages of their lives. "Small dogs reach skeletal and reproductive maturity sooner than larger breeds. Once they've achieved those measures of adulthood they carry on to live longer," says Dr. Kate Creevy, assistant professor of internal medicine at the University of Georgia. It's often said that the age of dogs can be better understood by multiplying their age, in human years, by 7. That is not very accurate since dogs reach adulthood within the first couple of years. The general calculator below is a bit more accurate. The formula has used 10.5 dog years per human year for the first 2 years, then 4 dog years per human year for each year after.

Below is the little script that was used to calculate the result_

12345678910111213141516`function`

`HumanDogYears(form) {`

`var`

`HumanYears = form.inYears.value;`

`if`

`(HumanYears >= 21) {`

`dy = (HumanYears - 21) / 4 + 2;`

`}`

`else`

`{`

`dy = HumanYears / 10.5;`

`}`

`var`

`hdy = 0;`

`if`

`(HumanYears >= 2) {`

`hdy = 21 + ((HumanYears - 2) * 4);`

`}`

`else`

`{`

`hdy = HumanYears * 10.5;`

`}`

`form.DogYears.value = Math.round(dy * 100) / 100;`

`form.HumanYears.value = Math.round(hdy * 100) / 100;`

`}`

## No comments:

## Post a Comment