calculate charitable remainder contribution