write function to return range between event years