Skip to content
Logan Franken edited this page Feb 9, 2017 · 6 revisions

To begin using the EFC Calculator from your web application, complete the following steps:

  1. Download the latest binaries
  2. Download Efc.CalculationConstants.1718.xml
  3. Reference Ucsb.Sa.FinAid.AidEstimation.EfcCalculation.dll
  4. Reference Ucsb.Sa.FinAid.AidEstimation.Utility.dll
  5. Place EfcCalculationConstants.1718.xml in App_Data
  6. Add the following to the appSettings section in your Web.config:
<add key="EfcCalculation.Constants.1718" value="~/App_Data/EfcCalculationConstants.1718.xml"/>

You can now use the EFC calculator:

EfcCalculator calculator = EfcCalculatorConfigurationManager.GetEfcCalculator("1718");

DependentEfcCalculatorArguments arguments = new DependentEfcCalculatorArguments();

arguments.MonthsOfEnrollment = 9;
arguments.NumberInHousehold = 2;
arguments.NumberInCollege = 1;

HouseholdMember mother = new HouseholdMember();
mother.IsWorking = true;
mother.WorkIncome = 123000;
arguments.FirstParent = mother;

HouseholdMember student = new HouseholdMember();
student.IsWorking = true;
student.WorkIncome = 12000;
arguments.Student = student;

EfcProfile profile = calculator.GetDependentEfcProfile(arguments);
Response.Write(profile.ExpectedFamilyContribution);

A full, working version of the EFC Calculator is provided in the Ucsb.Sa.FinAid.AidEstimation.Web project.