from datetime import datetime


def get_issue_age(issue):
    """Get the age of an issue."""

    issue_creation_date = datetime.fromisoformat(issue.fields.created.split("+", 1)[0])
    issue_age = datetime.now() - issue_creation_date
    return issue_age