Average duration of giving

Duration of Giving: Export data by donor, include year of last gift and year of first gift. Then calculate duration by record:

Year of last gift – Year of first gift = Duration of giving by each donor
Total number of years/Total number of unique donors = Average duration of giving