def compute_age(date, dob):
    """
    Compute a victim's age.

    :param datetime.date date: crash date
    :param datetime.date dob: date of birth
    :return: the victim's age.
    :rtype: int
    """
    DAYS_IN_YEAR = 365

    # Compute the age.
    return (date - dob).days // DAYS_IN_YEAR