# Discover your Havanese&#8217;s age in human years

# 🐾 Havanese Age Calculator

    

Discover your Havanese’s age in human years

  

  
    Your Havanese’s Age
    
      🐕
      
      3
    
    

3 years old

    ♥

    In Human Years
    
      28
      years old
    

    
      🌟 Young Adult
      Active, playful, and full of personality.
    
  

  Made with ♥ for Havanese lovers

  
    const ageMap = {1:15,2:24,3:28,4:32,5:36,6:40,7:44,8:48,9:52,10:56,11:60,12:64,13:68,14:72,15:76,16:80,17:84,18:88,19:92,20:96};

    function getStage(age) {
      if (age &lt;= 1) return [&#039;🐶&#039;,&#039;Puppy&#039;,&#039;Full of energy and learning about the world!&#039;];
      if (age &lt;= 3) return [&#039;🌟&#039;,&#039;Young Adult&#039;,&#039;Active, playful, and full of personality.&#039;];
      if (age &lt;= 7) return [&#039;💪&#039;,&#039;Adult&#039;,&#039;In their prime — happy and confident.&#039;];
      if (age &lt;= 12) return [&#039;🧡&#039;,&#039;Senior&#039;,&#039;Slowing down gracefully, still full of love.&#039;];
      return [&#039;👑&#039;,&#039;Golden Years&#039;,&#039;Cherish every moment with your wise companion.&#039;];
    }

    const slider = document.getElementById(&#039;ageSlider&#039;);
    slider.addEventListener(&#039;input&#039;, function() {
      const v = +this.value;
      document.getElementById(&#039;dogAge&#039;).textContent = v;
      document.getElementById(&#039;ageLabel&#039;).textContent = v + (v===1?&#039; year&#039;:&#039; years&#039;) + &#039; old&#039;;
      document.getElementById(&#039;humanAge&#039;).textContent = ageMap[v];
      const [e,n,d] = getStage(v);
      document.getElementById(&#039;emoji&#039;).textContent = e;
      document.getElementById(&#039;stageName&#039;).textContent = n;
      document.getElementById(&#039;stageDesc&#039;).textContent = d;
    });