```python
def dog_age(h_age):
    """
    Calculates a dog's age in dog's years based on a common formula.
    - The first year of a dog's life counts as 15 dog years.
    - The second year counts as 9 dog years.
    - Every subsequent year counts as 5 dog years.
    """
    if h_age == 0:
        return 0
    elif h_age == 1:
        return 15
    elif h_age == 2:
        return 24
    else:
        return 24 + (h_age - 2) * 5

```