from typing import Optional


def age(document: dict) -> Optional[str]:
    """
    Given a *document*, retrieve age value and
    return as a string to fit the interval format.

    If no value is given for age, then will just return None.
    """
    age = document.get("age")
    if age is None:
        return None
    return f"{float(age)} years"