// Calculate average minutes of support provided to youth per week
 public static void CalculateAvgMinPerWeek(Student stud)
 {
     stud.AvgIntvMin = stud.InterventionTotal != 0
         ? Math.Round((Convert.ToDouble(stud.InterventionTotal) / (Convert.ToDouble(stud.TotalDays) / 7)),
             1)
         : 0;
 }
        public void DaysSupported(string studentName, int expectedDaysSupported)
        {
            // Arrange
            student = studentList.First(s => s.Profile.Name == studentName);

            // Act
            StudentDataCalc.CalculateTotalDaysSupported(student);
            var actualdaysSupported = student.TotalDays;

            // Assert
            Assert.AreEqual(expectedDaysSupported, actualdaysSupported);
        }
        public void AvgMinPerWeek(string studentName, double expectedAvgMinPerWeek)
        {
            // Arrange
            student = studentList.First(s => s.Profile.Name == studentName);

            // Act
            StudentDataCalc.CalculateAvgMinPerWeek(student);
            var actualAvgMinPerWeek = student.AvgIntvMin;

            // Assert
            Assert.AreEqual(expectedAvgMinPerWeek, actualAvgMinPerWeek);
        }
 // Calculate how many missing baseline fields a student currently has
 public static void CalculateMissingBaselineTotal(Student stud)
 {
     if (!stud.CheckEwField.Absences) stud.MissingBaselineCount++;
     if (!stud.CheckEwField.Tardies) stud.MissingBaselineCount++;
     if (!stud.Bl.Acad.ScoreCheck) stud.MissingBaselineCount++;
     if (!stud.CheckEwField.Detentions) stud.MissingBaselineCount++;
     if (!stud.CheckEwField.OfficeRefs) stud.MissingBaselineCount++;
     if (!stud.CheckEwField.Suspensions) stud.MissingBaselineCount++;
     if (!stud.Bl.Acad.HomeworkCompletionScoreCheck) stud.MissingBaselineCount++;
     if (stud.EwAttendReportPeriodNum == "") stud.MissingBaselineCount++;
     if (stud.EwBehavReportPeriodNum == "") stud.MissingBaselineCount++;
 }
        public void CalculateMissingBaselineData(string studentName, int expectedMissingBaselineCount)
        {
            // Arrange
            student = studentList.First(s => s.Profile.Name == studentName);
            student.MissingBaselineCount = 0;

            // Act
            StudentDataCalc.CalculateMissingBaselineTotal(student);
            var actualMissingBaselineCount = student.MissingBaselineCount;

            // Assert
            Assert.AreEqual(expectedMissingBaselineCount, actualMissingBaselineCount);
        }
        public ReportWindow()
        {
            InitializeComponent();

            // Retrieve Student object for selected student
            _stud = MainWindow.StudentList.First(s => s.Profile.Name == MainWindow.StudentForReport);

            StudentDataCalc.SetRateChanges(_stud); // Set all of the rate change boxes

            DisplayInterventionsNeeded(); // Set the interventions needed boxes

            DisplayMissingBaselineIndicators(); // Display the missing baseline data indicators

            DisplayInterventionBreakdown(); // Display intervention mins and percentages

            DisplayStudentInfo(); // Displays basic/general information about student

            DisplayAbcRates(); // Display baseline and current ABC data
        }
 // Using any start and end dates recorded for the student, this calculates total time in the program.
 public static void CalculateTotalDaysSupported(Student stud)
 {
     if (!string.IsNullOrEmpty(stud.SupportDates.End3))
     {
         stud.SupportDates.Span3 = DateTime.Parse(stud.SupportDates.End3) - DateTime.Parse(stud.SupportDates.Start3);
         stud.SupportDates.Span2 = DateTime.Parse(stud.SupportDates.End2) - DateTime.Parse(stud.SupportDates.Start2);
         stud.SupportDates.Span1 = DateTime.Parse(stud.SupportDates.End1) - DateTime.Parse(stud.SupportDates.Start1);
         stud.TotalDays = stud.SupportDates.Span1.Days + stud.SupportDates.Span2.Days + stud.SupportDates.Span3.Days;
     }
     else if (!string.IsNullOrEmpty(stud.SupportDates.Start3))
     {
         stud.SupportDates.Span3 = TodayDate - DateTime.Parse(stud.SupportDates.Start3);
         stud.SupportDates.Span2 = DateTime.Parse(stud.SupportDates.End2) - DateTime.Parse(stud.SupportDates.Start2);
         stud.SupportDates.Span1 = DateTime.Parse(stud.SupportDates.End1) - DateTime.Parse(stud.SupportDates.Start1);
         stud.TotalDays = stud.SupportDates.Span1.Days + stud.SupportDates.Span2.Days + stud.SupportDates.Span3.Days;
     }
     else if (!string.IsNullOrEmpty(stud.SupportDates.End2))
     {
         stud.SupportDates.Span2 = DateTime.Parse(stud.SupportDates.End2) - DateTime.Parse(stud.SupportDates.Start2);
         stud.SupportDates.Span1 = DateTime.Parse(stud.SupportDates.End1) - DateTime.Parse(stud.SupportDates.Start1);
         stud.TotalDays = stud.SupportDates.Span1.Days + stud.SupportDates.Span2.Days;
     }
     else if (!string.IsNullOrEmpty(stud.SupportDates.Start2))
     {
         stud.SupportDates.Span2 = TodayDate - DateTime.Parse(stud.SupportDates.Start2);
         stud.SupportDates.Span1 = DateTime.Parse(stud.SupportDates.End1) - DateTime.Parse(stud.SupportDates.Start1);
         stud.TotalDays = stud.SupportDates.Span1.Days + stud.SupportDates.Span2.Days;
     }
     else if (!string.IsNullOrEmpty(stud.SupportDates.End1))
     {
         stud.SupportDates.Span1 = DateTime.Parse(stud.SupportDates.End1) - DateTime.Parse(stud.SupportDates.Start1);
         stud.TotalDays = stud.SupportDates.Span1.Days;
     }
     else
     {
         stud.SupportDates.Span1 = TodayDate - DateTime.Parse(stud.SupportDates.Start1);
         stud.TotalDays = stud.SupportDates.Span1.Days;
     }
 }
        public void SetRateChanges(string studentName,
            double expectedAcadScoreChange,
            double expectedDetenRateChange)
        {
            // Arrange
            student = studentList.First(s => s.Profile.Name == studentName);

            // Act
            StudentDataCalc.SetRateChanges(student);
            var actualAcadScoreChange = student.Ytd.Change.AcadScore;
            var actualDetenRateChange = student.Ytd.Change.DetenRate;

            // Assert
            Assert.AreEqual(expectedAcadScoreChange, actualAcadScoreChange);
            Assert.AreEqual(expectedDetenRateChange, actualDetenRateChange);
        }
        public void ImprovedInAllAreas(string studentName, bool expectedImprovedInAllAreas)
        {
            // Arrange
            student = studentList.First(s => s.Profile.Name == studentName);

            // Act
            StudentDataCalc.SetImprovementBools(student);

            // Assert
            Assert.AreEqual(student.Improvement.All, expectedImprovedInAllAreas);
        }
        // This extracts data from deserialized objects and enters them into appropriate fields for
        // each student object in the new list
        private static List<Student> ExtractStudentFields(int studentTotal)
        {
            List<Student> studentList = new List<Student>();

            for (int i = 0; i < studentTotal; i++)
            {

                var stud = new Student();

                stud.Profile.Fellow = _sortedListB[i].MemberName2.siteName2.StudentName2.StudentName2 ?? "null";

                stud.Profile.Site = _sortedListA[i].MemberName2.siteName2.siteName2 ?? "null";

                stud.Profile.Name = _sortedListA[i].MemberName2.MemberName2 ?? "null";

                stud.Profile.Status = _sortedListB[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.MN_MathStudentStatusName2 ?? "null";

                stud.Grade = _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                    .MN_PromiseFellows_StudentID.MN_MathGradeName2.MN_MathGradeName2 ?? "null";

                stud.Program = _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                    .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2.programName2 ?? "null";

                stud.SupportDates.Start1 = _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                    .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2.MN_MathStudentStatusName2
                    .StartDate4.StartDate4 ?? "null";

                stud.SupportDates.End1 = _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                    .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2.MN_MathStudentStatusName2
                    .StartDate4.EndDate2.EndDate2 ?? "null";

                stud.SupportDates.Start2 = _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                    .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2.MN_MathStudentStatusName2
                    .StartDate4.EndDate2.Textbox817.Textbox817 ?? "null";

                stud.SupportDates.End2 = _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                    .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2.MN_MathStudentStatusName2
                    .StartDate4.EndDate2.Textbox817.Textbox11.Textbox11 ?? "null";

                stud.SupportDates.Start3 = _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                    .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2.MN_MathStudentStatusName2
                    .StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox8 ?? "null";

                stud.SupportDates.End3 = _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                    .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2.MN_MathStudentStatusName2
                    .StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827.Textbox827 ?? "null";

                stud.Intvns.Needed.AcadReading = _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                    .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2.MN_MathStudentStatusName2
                    .StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827.Textbox45.Textbox45 ?? "null";

                stud.Intvns.Needed.AcadMath = _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                    .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2.MN_MathStudentStatusName2
                    .StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827.Textbox45.Textbox51
                    .Textbox51 ?? "null";

                stud.Intvns.Needed.AcadOther = _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                    .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2.MN_MathStudentStatusName2
                    .StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827.Textbox45.Textbox51
                    .Textbox52
                    .Textbox52 ?? "null";

                stud.Intvns.Needed.Behav = _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                    .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2.MN_MathStudentStatusName2
                    .StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827.Textbox45.Textbox51
                    .Textbox52
                    .Textbox53.Textbox53 ?? "null";

                stud.Intvns.Needed.Attend = _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                    .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2.MN_MathStudentStatusName2
                    .StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827.Textbox45.Textbox51
                    .Textbox52
                    .Textbox53.Textbox55.Textbox55 ?? "null";

                stud.CheckEwField.Absences = _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                    .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2.MN_MathStudentStatusName2
                    .StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827.Textbox45.Textbox51
                    .Textbox52
                    .Textbox53.Textbox55.EarlyWarn_Absences.EarlyWarn_AbsencesSpecified;

                stud.CheckEwField.Tardies = _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                    .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2.MN_MathStudentStatusName2
                    .StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827.Textbox45.Textbox51
                    .Textbox52
                    .Textbox53.Textbox55.EarlyWarn_Absences.EarlyWarn_AttendanceType
                    .EarlyWarn_AttendanceDaysInRP.EarlyWarn_AttendancePeriodsInDay.AttendanceRate_BaseLine
                    .Textbox32.Textbox32Specified;

                stud.CheckEwField.OfficeRefs = _sortedListB[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_OfficeVisits.EarlyWarn_OfficeVisitsSpecified;

                stud.CheckEwField.Suspensions = _sortedListB[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_OfficeVisits.Textbox29.EarlyWarn_Detentions
                    .Textbox30.EarlyWarn_DaysSuspended.EarlyWarn_DaysSuspendedSpecified;

                stud.CheckEwField.Detentions = _sortedListB[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_OfficeVisits.Textbox29.EarlyWarn_Detentions
                    .EarlyWarn_DetentionsSpecified;

                stud.Bl.Attend.Absences = Convert.ToDouble(
                    _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                        .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2
                        .MN_MathStudentStatusName2
                        .StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827.Textbox45.Textbox51
                        .Textbox52.Textbox53.Textbox55.EarlyWarn_Absences.EarlyWarn_Absences);

                stud.Bl.Attend.Rate = Math.Round(
                    Convert.ToDouble(
                        _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                            .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2
                            .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8
                            .Textbox827.Textbox45.Textbox51.Textbox52.Textbox53.Textbox55.EarlyWarn_Absences
                            .EarlyWarn_AttendanceType.EarlyWarn_AttendanceDaysInRP
                            .EarlyWarn_AttendancePeriodsInDay.AttendanceRate_BaseLine
                            .AttendanceRate_BaseLine), 4);

                stud.Bl.Attend.Tardies = _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                    .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2.MN_MathStudentStatusName2
                    .StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827.Textbox45.Textbox51
                    .Textbox52
                    .Textbox53.Textbox55.EarlyWarn_Absences.EarlyWarn_AttendanceType
                    .EarlyWarn_AttendanceDaysInRP.EarlyWarn_AttendancePeriodsInDay.AttendanceRate_BaseLine
                    .Textbox32.Textbox32;

                stud.Bl.Attend.OnTimeRate = Math.Round(
                    Convert.ToDouble(
                        _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                            .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2
                            .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8
                            .Textbox827.Textbox45.Textbox51.Textbox52.Textbox53.Textbox55.EarlyWarn_Absences
                            .EarlyWarn_AttendanceType.EarlyWarn_AttendanceDaysInRP
                            .EarlyWarn_AttendancePeriodsInDay.AttendanceRate_BaseLine.Textbox32.Textbox10
                            .Textbox10), 4);

                stud.EwAttendReportPeriodNum = _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                    .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2.MN_MathStudentStatusName2
                    .StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827.Textbox45.Textbox51.Textbox52
                    .Textbox53.Textbox55.EarlyWarn_Absences.EarlyWarn_AttendanceType
                    .EarlyWarn_AttendanceDaysInRP.EarlyWarn_AttendancePeriodsInDay.AttendanceRate_BaseLine
                    .Textbox32.Textbox10.EarlyWarn_AttendanceFrequency.EarlyWarn_AttendanceRPNumber
                    .EarlyWarn_AttendanceRPNumber;

                stud.Mo.InstructPeriods = _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                    .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2.MN_MathStudentStatusName2
                    .StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827.Textbox45.Textbox51.Textbox52
                    .Textbox53.Textbox55.EarlyWarn_Absences.EarlyWarn_AttendanceType
                    .EarlyWarn_AttendanceDaysInRP.EarlyWarn_AttendancePeriodsInDay.AttendanceRate_BaseLine
                    .Textbox32.Textbox10.EarlyWarn_AttendanceFrequency.EarlyWarn_AttendanceRPNumber
                    .MONTH_NumberOfInstructionalDays.MONTH_NumberOfInstructionalPeriods
                    .MONTH_NumberOfInstructionalPeriods;

                stud.Mo.Attend.Absences = _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                    .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2.MN_MathStudentStatusName2
                    .StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827.Textbox45.Textbox51
                    .Textbox52
                    .Textbox53.Textbox55.EarlyWarn_Absences.EarlyWarn_AttendanceType
                    .EarlyWarn_AttendanceDaysInRP.EarlyWarn_AttendancePeriodsInDay.AttendanceRate_BaseLine
                    .Textbox32.Textbox10.EarlyWarn_AttendanceFrequency.EarlyWarn_AttendanceRPNumber
                    .MONTH_NumberOfInstructionalDays.MONTH_NumberOfInstructionalPeriods
                    .MONTH_Attendance_NumberAbsent.MONTH_Attendance_NumberAbsent;

                stud.Mo.Attend.Unknowns = _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                    .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2.MN_MathStudentStatusName2
                    .StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827.Textbox45.Textbox51
                    .Textbox52
                    .Textbox53.Textbox55.EarlyWarn_Absences.EarlyWarn_AttendanceType
                    .EarlyWarn_AttendanceDaysInRP.EarlyWarn_AttendancePeriodsInDay.AttendanceRate_BaseLine
                    .Textbox32.Textbox10.EarlyWarn_AttendanceFrequency.EarlyWarn_AttendanceRPNumber
                    .MONTH_NumberOfInstructionalDays.MONTH_NumberOfInstructionalPeriods
                    .MONTH_Attendance_NumberAbsent.MONTH_Attendance_Reason_PeriodUnknown
                    .MONTH_Attendance_Reason_PeriodUnknown;

                stud.Mo.Attend.Rate = Math.Round(
                    Convert.ToDouble(
                        _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                            .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2
                            .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8
                            .Textbox827.Textbox45.Textbox51.Textbox52.Textbox53.Textbox55.EarlyWarn_Absences
                            .EarlyWarn_AttendanceType.EarlyWarn_AttendanceDaysInRP
                            .EarlyWarn_AttendancePeriodsInDay.AttendanceRate_BaseLine.Textbox32.Textbox10
                            .EarlyWarn_AttendanceFrequency.EarlyWarn_AttendanceRPNumber
                            .MONTH_NumberOfInstructionalDays.MONTH_NumberOfInstructionalPeriods
                            .MONTH_Attendance_NumberAbsent.MONTH_Attendance_Reason_PeriodUnknown
                            .AttendanceRate_Month.AttendanceRate_Month), 4);

                stud.Mo.Attend.Tardies = _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                    .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2.MN_MathStudentStatusName2
                    .StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827.Textbox45.Textbox51
                    .Textbox52
                    .Textbox53.Textbox55.EarlyWarn_Absences.EarlyWarn_AttendanceType
                    .EarlyWarn_AttendanceDaysInRP.EarlyWarn_AttendancePeriodsInDay.AttendanceRate_BaseLine
                    .Textbox32.Textbox10.EarlyWarn_AttendanceFrequency.EarlyWarn_AttendanceRPNumber
                    .MONTH_NumberOfInstructionalDays.MONTH_NumberOfInstructionalPeriods
                    .MONTH_Attendance_NumberAbsent.MONTH_Attendance_Reason_PeriodUnknown
                    .AttendanceRate_Month
                    .MONTH_Attendance_Reason_PeriodTardy.MONTH_Attendance_Reason_PeriodTardy;

                stud.Mo.Attend.OnTimeRate = Math.Round(
                    Convert.ToDouble(
                        _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                            .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2
                            .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8
                            .Textbox827.Textbox45.Textbox51.Textbox52.Textbox53.Textbox55.EarlyWarn_Absences
                            .EarlyWarn_AttendanceType.EarlyWarn_AttendanceDaysInRP
                            .EarlyWarn_AttendancePeriodsInDay.AttendanceRate_BaseLine.Textbox32.Textbox10
                            .EarlyWarn_AttendanceFrequency.EarlyWarn_AttendanceRPNumber
                            .MONTH_NumberOfInstructionalDays.MONTH_NumberOfInstructionalPeriods
                            .MONTH_Attendance_NumberAbsent.MONTH_Attendance_Reason_PeriodUnknown
                            .AttendanceRate_Month.MONTH_Attendance_Reason_PeriodTardy.OnTimeRate_Month
                            .OnTimeRate_Month), 4);

                stud.Ytd.InstructDays = _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                    .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8
                    .Textbox827.Textbox45.Textbox51.Textbox52.Textbox53.Textbox55.EarlyWarn_Absences
                    .EarlyWarn_AttendanceType.EarlyWarn_AttendanceDaysInRP
                    .EarlyWarn_AttendancePeriodsInDay.AttendanceRate_BaseLine.Textbox32.Textbox10
                    .EarlyWarn_AttendanceFrequency.EarlyWarn_AttendanceRPNumber
                    .MONTH_NumberOfInstructionalDays.MONTH_NumberOfInstructionalPeriods
                    .MONTH_Attendance_NumberAbsent.MONTH_Attendance_Reason_PeriodUnknown
                    .AttendanceRate_Month.MONTH_Attendance_Reason_PeriodTardy.OnTimeRate_Month
                    .MONTH_Intervention_Instances.MONTH_Intervention_Minutes
                    .YTD_NumberOfInstructionalDays.YTD_NumberOfInstructionalDays;

                stud.TotalInstructDays = _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                    .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2.MN_MathStudentStatusName2
                    .StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827.Textbox45.Textbox51.Textbox52
                    .Textbox53.Textbox55.EarlyWarn_Absences.EarlyWarn_AttendanceType
                    .EarlyWarn_AttendanceDaysInRP.EarlyWarn_AttendancePeriodsInDay.AttendanceRate_BaseLine
                    .Textbox32.Textbox10.EarlyWarn_AttendanceFrequency.EarlyWarn_AttendanceRPNumber
                    .MONTH_NumberOfInstructionalDays.MONTH_NumberOfInstructionalPeriods
                    .MONTH_Attendance_NumberAbsent.MONTH_Attendance_Reason_PeriodUnknown.AttendanceRate_Month
                    .MONTH_Attendance_Reason_PeriodTardy.OnTimeRate_Month.MONTH_Intervention_Instances
                    .MONTH_Intervention_Minutes.YTD_NumberOfInstructionalDays.YTD_NumberOfInstructionalDays;

                stud.Ytd.InstructPeriods = _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                    .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2.MN_MathStudentStatusName2
                    .StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827.Textbox45.Textbox51.Textbox52
                    .Textbox53.Textbox55.EarlyWarn_Absences.EarlyWarn_AttendanceType
                    .EarlyWarn_AttendanceDaysInRP.EarlyWarn_AttendancePeriodsInDay.AttendanceRate_BaseLine
                    .Textbox32.Textbox10.EarlyWarn_AttendanceFrequency.EarlyWarn_AttendanceRPNumber
                    .MONTH_NumberOfInstructionalDays.MONTH_NumberOfInstructionalPeriods
                    .MONTH_Attendance_NumberAbsent.MONTH_Attendance_Reason_PeriodUnknown.AttendanceRate_Month
                    .MONTH_Attendance_Reason_PeriodTardy.OnTimeRate_Month.MONTH_Intervention_Instances
                    .MONTH_Intervention_Minutes.YTD_NumberOfInstructionalDays.YTD_NumberOfInstructionalPeriods
                    .YTD_NumberOfInstructionalPeriods;

                stud.Ytd.Attend.Absences = _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                    .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2.MN_MathStudentStatusName2
                    .StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827.Textbox45.Textbox51
                    .Textbox52
                    .Textbox53.Textbox55.EarlyWarn_Absences.EarlyWarn_AttendanceType
                    .EarlyWarn_AttendanceDaysInRP.EarlyWarn_AttendancePeriodsInDay.AttendanceRate_BaseLine
                    .Textbox32.Textbox10.EarlyWarn_AttendanceFrequency.EarlyWarn_AttendanceRPNumber
                    .MONTH_NumberOfInstructionalDays.MONTH_NumberOfInstructionalPeriods
                    .MONTH_Attendance_NumberAbsent.MONTH_Attendance_Reason_PeriodUnknown
                    .AttendanceRate_Month
                    .MONTH_Attendance_Reason_PeriodTardy.OnTimeRate_Month.MONTH_Intervention_Instances
                    .MONTH_Intervention_Minutes.YTD_NumberOfInstructionalDays
                    .YTD_NumberOfInstructionalPeriods
                    .YTD_Attendance_NumberAbsent.YTD_Attendance_NumberAbsent;

                stud.Ytd.Attend.Unknowns = _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                    .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2.MN_MathStudentStatusName2
                    .StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827.Textbox45.Textbox51
                    .Textbox52
                    .Textbox53.Textbox55.EarlyWarn_Absences.EarlyWarn_AttendanceType
                    .EarlyWarn_AttendanceDaysInRP.EarlyWarn_AttendancePeriodsInDay.AttendanceRate_BaseLine
                    .Textbox32.Textbox10.EarlyWarn_AttendanceFrequency.EarlyWarn_AttendanceRPNumber
                    .MONTH_NumberOfInstructionalDays.MONTH_NumberOfInstructionalPeriods
                    .MONTH_Attendance_NumberAbsent.MONTH_Attendance_Reason_PeriodUnknown
                    .AttendanceRate_Month
                    .MONTH_Attendance_Reason_PeriodTardy.OnTimeRate_Month.MONTH_Intervention_Instances
                    .MONTH_Intervention_Minutes.YTD_NumberOfInstructionalDays
                    .YTD_NumberOfInstructionalPeriods
                    .YTD_Attendance_NumberAbsent.YTD_Attendance_Reason_PeriodUnknown
                    .YTD_Attendance_Reason_PeriodUnknown;

                stud.Ytd.Attend.Rate = Math.Round(
                    Convert.ToDouble(
                        _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                            .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2
                            .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8
                            .Textbox827.Textbox45.Textbox51.Textbox52.Textbox53.Textbox55.EarlyWarn_Absences
                            .EarlyWarn_AttendanceType.EarlyWarn_AttendanceDaysInRP
                            .EarlyWarn_AttendancePeriodsInDay.AttendanceRate_BaseLine.Textbox32.Textbox10
                            .EarlyWarn_AttendanceFrequency.EarlyWarn_AttendanceRPNumber
                            .MONTH_NumberOfInstructionalDays.MONTH_NumberOfInstructionalPeriods
                            .MONTH_Attendance_NumberAbsent.MONTH_Attendance_Reason_PeriodUnknown
                            .AttendanceRate_Month.MONTH_Attendance_Reason_PeriodTardy.OnTimeRate_Month
                            .MONTH_Intervention_Instances.MONTH_Intervention_Minutes
                            .YTD_NumberOfInstructionalDays.YTD_NumberOfInstructionalPeriods
                            .YTD_Attendance_NumberAbsent.YTD_Attendance_Reason_PeriodUnknown
                            .AttendanceRate_YTD
                            .AttendanceRate_YTD), 4);

                stud.Ytd.Attend.Tardies = _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                    .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2.MN_MathStudentStatusName2
                    .StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827.Textbox45.Textbox51
                    .Textbox52
                    .Textbox53.Textbox55.EarlyWarn_Absences.EarlyWarn_AttendanceType
                    .EarlyWarn_AttendanceDaysInRP.EarlyWarn_AttendancePeriodsInDay.AttendanceRate_BaseLine
                    .Textbox32.Textbox10.EarlyWarn_AttendanceFrequency.EarlyWarn_AttendanceRPNumber
                    .MONTH_NumberOfInstructionalDays.MONTH_NumberOfInstructionalPeriods
                    .MONTH_Attendance_NumberAbsent.MONTH_Attendance_Reason_PeriodUnknown
                    .AttendanceRate_Month
                    .MONTH_Attendance_Reason_PeriodTardy.OnTimeRate_Month.MONTH_Intervention_Instances
                    .MONTH_Intervention_Minutes.YTD_NumberOfInstructionalDays
                    .YTD_NumberOfInstructionalPeriods
                    .YTD_Attendance_NumberAbsent.YTD_Attendance_Reason_PeriodUnknown.AttendanceRate_YTD
                    .YTD_Attendance_Reason_PeriodTardy.YTD_Attendance_Reason_PeriodTardy;

                stud.Ytd.Attend.OnTimeRate = Math.Round(
                    Convert.ToDouble(
                        _sortedListA[i].MemberName2.siteName2.MN_PromiseFellows_StudentID_Collection
                            .MN_PromiseFellows_StudentID.MN_MathGradeName2.programName2
                            .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8
                            .Textbox827.Textbox45.Textbox51.Textbox52.Textbox53.Textbox55.EarlyWarn_Absences
                            .EarlyWarn_AttendanceType.EarlyWarn_AttendanceDaysInRP
                            .EarlyWarn_AttendancePeriodsInDay.AttendanceRate_BaseLine.Textbox32.Textbox10
                            .EarlyWarn_AttendanceFrequency.EarlyWarn_AttendanceRPNumber
                            .MONTH_NumberOfInstructionalDays.MONTH_NumberOfInstructionalPeriods
                            .MONTH_Attendance_NumberAbsent.MONTH_Attendance_Reason_PeriodUnknown
                            .AttendanceRate_Month.MONTH_Attendance_Reason_PeriodTardy.OnTimeRate_Month
                            .MONTH_Intervention_Instances.MONTH_Intervention_Minutes
                            .YTD_NumberOfInstructionalDays.YTD_NumberOfInstructionalPeriods
                            .YTD_Attendance_NumberAbsent.YTD_Attendance_Reason_PeriodUnknown
                            .AttendanceRate_YTD
                            .YTD_Attendance_Reason_PeriodTardy.Textbox13.Textbox13), 4);

                stud.Bl.Behav.OfficeRefs = _sortedListB[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_OfficeVisits.EarlyWarn_OfficeVisits;

                stud.Bl.Behav.OfficeRate = Math.Round(
                    Convert.ToDouble(
                        _sortedListB[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                            .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8
                            .Textbox827.MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID
                            .Textbox45.Textbox51.Textbox52.Textbox53.Textbox55.EarlyWarn_OfficeVisits
                            .Textbox29
                            .Textbox29), 4);

                stud.Bl.Behav.Detentions = _sortedListB[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_OfficeVisits.Textbox29.EarlyWarn_Detentions
                    .EarlyWarn_Detentions;

                stud.Bl.Behav.DetenRate = Math.Round(
                    Convert.ToDouble(
                        _sortedListB[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                            .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8
                            .Textbox827.MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID
                            .Textbox45.Textbox51.Textbox52.Textbox53.Textbox55.EarlyWarn_OfficeVisits
                            .Textbox29
                            .EarlyWarn_Detentions.Textbox30.Textbox30), 4);

                stud.Bl.Behav.Suspensions = Convert.ToInt16(
                    _sortedListB[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                        .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8
                        .Textbox827
                        .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45
                        .Textbox51
                        .Textbox52.Textbox53.Textbox55.EarlyWarn_OfficeVisits.Textbox29.EarlyWarn_Detentions
                        .Textbox30.EarlyWarn_DaysSuspended.EarlyWarn_DaysSuspended);

                stud.Bl.Behav.SuspendRate = Math.Round(
                    Convert.ToDouble(
                        _sortedListB[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                            .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8
                            .Textbox827.MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID
                            .Textbox45.Textbox51.Textbox52.Textbox53.Textbox55.EarlyWarn_OfficeVisits
                            .Textbox29
                            .EarlyWarn_Detentions.Textbox30.EarlyWarn_DaysSuspended.Textbox32.Textbox32), 4);

                stud.EwBehavReportPeriodNum = _sortedListB[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_OfficeVisits.Textbox29.EarlyWarn_Detentions
                    .Textbox30.EarlyWarn_DaysSuspended.Textbox32.EarlyWarn_BehaviorFrequency
                    .EarlyWarn_BehaviorRPNumber.EarlyWarn_BehaviorRPNumber;

                stud.Mo.InstructDays = _sortedListB[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_OfficeVisits.Textbox29.EarlyWarn_Detentions
                    .Textbox30.EarlyWarn_DaysSuspended.Textbox32.EarlyWarn_BehaviorFrequency
                    .EarlyWarn_BehaviorRPNumber.EarlyWarn_BehaviorDaysInRP.MONTH_IntructionalDays
                    .MONTH_IntructionalDays;

                stud.Mo.Behav.OfficeRefs = _sortedListB[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_OfficeVisits.Textbox29.EarlyWarn_Detentions
                    .Textbox30.EarlyWarn_DaysSuspended.Textbox32.EarlyWarn_BehaviorFrequency
                    .EarlyWarn_BehaviorRPNumber.EarlyWarn_BehaviorDaysInRP.MONTH_IntructionalDays
                    .MONTH_PrincipleOfficeCount.MONTH_PrincipleOfficeCount;

                stud.Mo.Behav.OfficeRate = Math.Round(
                    Convert.ToDouble(
                        _sortedListB[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                            .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8
                            .Textbox827.MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID
                            .Textbox45.Textbox51.Textbox52.Textbox53.Textbox55.EarlyWarn_OfficeVisits
                            .Textbox29
                            .EarlyWarn_Detentions.Textbox30.EarlyWarn_DaysSuspended.Textbox32
                            .EarlyWarn_BehaviorFrequency.EarlyWarn_BehaviorRPNumber
                            .EarlyWarn_BehaviorDaysInRP
                            .MONTH_IntructionalDays.MONTH_PrincipleOfficeCount.Textbox83.Textbox83), 4);

                stud.Mo.Behav.Detentions = _sortedListB[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_OfficeVisits.Textbox29.EarlyWarn_Detentions
                    .Textbox30.EarlyWarn_DaysSuspended.Textbox32.EarlyWarn_BehaviorFrequency
                    .EarlyWarn_BehaviorRPNumber.EarlyWarn_BehaviorDaysInRP.MONTH_IntructionalDays
                    .MONTH_PrincipleOfficeCount.Textbox83.MONTH_DetentionCount.MONTH_DetentionCount;

                stud.Mo.Behav.DetenRate = Math.Round(
                    Convert.ToDouble(
                        _sortedListB[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                            .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8
                            .Textbox827.MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID
                            .Textbox45.Textbox51.Textbox52.Textbox53.Textbox55.EarlyWarn_OfficeVisits
                            .Textbox29
                            .EarlyWarn_Detentions.Textbox30.EarlyWarn_DaysSuspended.Textbox32
                            .EarlyWarn_BehaviorFrequency.EarlyWarn_BehaviorRPNumber
                            .EarlyWarn_BehaviorDaysInRP
                            .MONTH_IntructionalDays.MONTH_PrincipleOfficeCount.Textbox83
                            .MONTH_DetentionCount
                            .Textbox117.Textbox117), 4);

                stud.Mo.Behav.Suspensions = _sortedListB[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_OfficeVisits.Textbox29.EarlyWarn_Detentions
                    .Textbox30.EarlyWarn_DaysSuspended.Textbox32.EarlyWarn_BehaviorFrequency
                    .EarlyWarn_BehaviorRPNumber.EarlyWarn_BehaviorDaysInRP.MONTH_IntructionalDays
                    .MONTH_PrincipleOfficeCount.Textbox83.MONTH_DetentionCount.Textbox117
                    .MONTH_Behavior_SuspensionCount.MONTH_Behavior_SuspensionCount;

                stud.Mo.Behav.SuspendRate = Math.Round(
                    Convert.ToDouble(
                        _sortedListB[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                            .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8
                            .Textbox827.MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID
                            .Textbox45.Textbox51.Textbox52.Textbox53.Textbox55.EarlyWarn_OfficeVisits
                            .Textbox29
                            .EarlyWarn_Detentions.Textbox30.EarlyWarn_DaysSuspended.Textbox32
                            .EarlyWarn_BehaviorFrequency.EarlyWarn_BehaviorRPNumber
                            .EarlyWarn_BehaviorDaysInRP
                            .MONTH_IntructionalDays.MONTH_PrincipleOfficeCount.Textbox83
                            .MONTH_DetentionCount
                            .Textbox117.MONTH_Behavior_SuspensionCount.Textbox109.Textbox109), 4);

                stud.Ytd.Behav.OfficeRefs = _sortedListB[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_OfficeVisits.Textbox29.EarlyWarn_Detentions
                    .Textbox30.EarlyWarn_DaysSuspended.Textbox32.EarlyWarn_BehaviorFrequency
                    .EarlyWarn_BehaviorRPNumber.EarlyWarn_BehaviorDaysInRP.MONTH_IntructionalDays
                    .MONTH_PrincipleOfficeCount.Textbox83.MONTH_DetentionCount.Textbox117
                    .MONTH_Behavior_SuspensionCount.Textbox109.MONTH_Intervention_Instances
                    .MONTH_Intervention_Minutes.YTD_IntructionalDays.YTD_PrincipleOfficeCount
                    .YTD_PrincipleOfficeCount;

                stud.Ytd.Behav.OfficeRate = Math.Round(
                    Convert.ToDouble(
                        _sortedListB[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                            .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8
                            .Textbox827.MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID
                            .Textbox45.Textbox51.Textbox52.Textbox53.Textbox55.EarlyWarn_OfficeVisits
                            .Textbox29
                            .EarlyWarn_Detentions.Textbox30.EarlyWarn_DaysSuspended.Textbox32
                            .EarlyWarn_BehaviorFrequency.EarlyWarn_BehaviorRPNumber
                            .EarlyWarn_BehaviorDaysInRP
                            .MONTH_IntructionalDays.MONTH_PrincipleOfficeCount.Textbox83
                            .MONTH_DetentionCount
                            .Textbox117.MONTH_Behavior_SuspensionCount.Textbox109
                            .MONTH_Intervention_Instances
                            .MONTH_Intervention_Minutes.YTD_IntructionalDays.YTD_PrincipleOfficeCount
                            .Textbox77
                            .Textbox77), 4);

                stud.Ytd.Behav.Detentions = _sortedListB[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_OfficeVisits.Textbox29.EarlyWarn_Detentions
                    .Textbox30.EarlyWarn_DaysSuspended.Textbox32.EarlyWarn_BehaviorFrequency
                    .EarlyWarn_BehaviorRPNumber.EarlyWarn_BehaviorDaysInRP.MONTH_IntructionalDays
                    .MONTH_PrincipleOfficeCount.Textbox83.MONTH_DetentionCount.Textbox117
                    .MONTH_Behavior_SuspensionCount.Textbox109.MONTH_Intervention_Instances
                    .MONTH_Intervention_Minutes.YTD_IntructionalDays.YTD_PrincipleOfficeCount.Textbox77
                    .YTD_DetentionCount.YTD_DetentionCount;

                stud.Ytd.Behav.DetenRate = Math.Round(
                    Convert.ToDouble(
                        _sortedListB[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                            .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8
                            .Textbox827.MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID
                            .Textbox45.Textbox51.Textbox52.Textbox53.Textbox55.EarlyWarn_OfficeVisits
                            .Textbox29
                            .EarlyWarn_Detentions.Textbox30.EarlyWarn_DaysSuspended.Textbox32
                            .EarlyWarn_BehaviorFrequency.EarlyWarn_BehaviorRPNumber
                            .EarlyWarn_BehaviorDaysInRP
                            .MONTH_IntructionalDays.MONTH_PrincipleOfficeCount.Textbox83
                            .MONTH_DetentionCount
                            .Textbox117.MONTH_Behavior_SuspensionCount.Textbox109
                            .MONTH_Intervention_Instances
                            .MONTH_Intervention_Minutes.YTD_IntructionalDays.YTD_PrincipleOfficeCount
                            .Textbox77
                            .YTD_DetentionCount.Textbox115.Textbox115), 4);

                stud.Ytd.Behav.Suspensions = _sortedListB[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_OfficeVisits.Textbox29.EarlyWarn_Detentions
                    .Textbox30.EarlyWarn_DaysSuspended.Textbox32.EarlyWarn_BehaviorFrequency
                    .EarlyWarn_BehaviorRPNumber.EarlyWarn_BehaviorDaysInRP.MONTH_IntructionalDays
                    .MONTH_PrincipleOfficeCount.Textbox83.MONTH_DetentionCount.Textbox117
                    .MONTH_Behavior_SuspensionCount.Textbox109.MONTH_Intervention_Instances
                    .MONTH_Intervention_Minutes.YTD_IntructionalDays.YTD_PrincipleOfficeCount.Textbox77
                    .YTD_DetentionCount.Textbox115.YTD_Behavior_SuspensionCount.YTD_Behavior_SuspensionCount;

                stud.Ytd.Behav.SuspendRate = Math.Round(
                    Convert.ToDouble(
                        _sortedListB[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                            .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8
                            .Textbox827.MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID
                            .Textbox45.Textbox51.Textbox52.Textbox53.Textbox55.EarlyWarn_OfficeVisits
                            .Textbox29
                            .EarlyWarn_Detentions.Textbox30.EarlyWarn_DaysSuspended.Textbox32
                            .EarlyWarn_BehaviorFrequency.EarlyWarn_BehaviorRPNumber
                            .EarlyWarn_BehaviorDaysInRP
                            .MONTH_IntructionalDays.MONTH_PrincipleOfficeCount.Textbox83
                            .MONTH_DetentionCount
                            .Textbox117.MONTH_Behavior_SuspensionCount.Textbox109
                            .MONTH_Intervention_Instances
                            .MONTH_Intervention_Minutes.YTD_IntructionalDays.YTD_PrincipleOfficeCount
                            .Textbox77
                            .YTD_DetentionCount.Textbox115.YTD_Behavior_SuspensionCount.Textbox107
                            .Textbox107),
                    4);

                stud.Bl.Acad.Score = _sortedListC[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_AcademicScore3.EarlyWarn_AcademicScore3;

                stud.Bl.Acad.ScoreCheck = _sortedListC[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_AcademicScore3
                    .EarlyWarn_AcademicScore3Specified;

                stud.Bl.Acad.ScoreType = _sortedListC[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_AcademicScore3.EarlyWarn_AcademicScore4
                    .EarlyWarn_AcademicScore4;

                stud.Bl.Acad.HomeworkCompletionScore = _sortedListC[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_AcademicScore3.EarlyWarn_AcademicScore4
                    .EarlyWarn_HomeworkCompletionScore.EarlyWarn_HomeworkCompletionScore;

                stud.Bl.Acad.HomeworkCompletionScoreCheck = _sortedListC[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_AcademicScore3.EarlyWarn_AcademicScore4
                    .EarlyWarn_HomeworkCompletionScore.EarlyWarn_HomeworkCompletionScoreSpecified;

                stud.Mo.Acad.Score = _sortedListC[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_AcademicScore3.EarlyWarn_AcademicScore4
                    .EarlyWarn_HomeworkCompletionScore.Updated_Academic_AcademicScore3
                    .Updated_Academic_AcademicScore3;

                stud.Mo.Acad.ScoreCheck = _sortedListC[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_AcademicScore3.EarlyWarn_AcademicScore4
                    .EarlyWarn_HomeworkCompletionScore.Updated_Academic_AcademicScore3
                    .Updated_Academic_AcademicScore3Specified;

                stud.Mo.Acad.ScoreDate = _sortedListC[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_AcademicScore3.EarlyWarn_AcademicScore4
                    .EarlyWarn_HomeworkCompletionScore.Updated_Academic_AcademicScore3
                    .Updated_AcademicScore1TypeName2.Updated_DailyAcademicScoreDate3
                    .Updated_DailyAcademicScoreDate3;

                stud.Mo.Acad.HomeworkCompletionScore = _sortedListC[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_AcademicScore3.EarlyWarn_AcademicScore4
                    .EarlyWarn_HomeworkCompletionScore.Updated_Academic_AcademicScore3
                    .Updated_AcademicScore1TypeName2.Updated_DailyAcademicScoreDate3
                    .Updated_Academic_AcademicScore4.Updated_AcademicScore2TypeName2
                    .Updated_DailyAcademicScoreDate4.Total_Intervention_Instances2
                    .Total_Intervention_Minutes2
                    .HomeworkCompletionScore.HomeworkCompletionScore;

                stud.Mo.Acad.HomeworkCompletionScoreCheck = _sortedListC[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_AcademicScore3.EarlyWarn_AcademicScore4
                    .EarlyWarn_HomeworkCompletionScore.Updated_Academic_AcademicScore3
                    .Updated_AcademicScore1TypeName2.Updated_DailyAcademicScoreDate3
                    .Updated_Academic_AcademicScore4.Updated_AcademicScore2TypeName2
                    .Updated_DailyAcademicScoreDate4.Total_Intervention_Instances2
                    .Total_Intervention_Minutes2
                    .HomeworkCompletionScore.HomeworkCompletionScoreSpecified;

                stud.InterventionTotal = _sortedListI[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_AcademicScore3.EarlyWarn_AcademicScore4
                    .EarlyWarn_HomeworkCompletionScore.Updated_Academic_AcademicScore3
                    .Updated_AcademicScore1TypeName2.Updated_DailyAcademicScoreDate3.HomeworkCompletionScore
                    .HomeworkCompletionDate.COUNT_TotalInterventionForThisStudent
                    .MINUTES_TotalInterventionForThisStudent
                    .MINUTES_TotalInterventionForThisStudent;

                stud.Intvns.ServNum = _sortedListI[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_AcademicScore3.EarlyWarn_AcademicScore4
                    .EarlyWarn_HomeworkCompletionScore.Updated_Academic_AcademicScore3
                    .Updated_AcademicScore1TypeName2.Updated_DailyAcademicScoreDate3.HomeworkCompletionScore
                    .HomeworkCompletionDate.COUNT_TotalInterventionForThisStudent
                    .MINUTES_TotalInterventionForThisStudent
                    .Textbox114.Textbox141.OutcomeName2.Textbox2.COUNT_IsTypeServiceAndOrLeadership;

                stud.Intvns.ServMin = _sortedListI[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_AcademicScore3.EarlyWarn_AcademicScore4
                    .EarlyWarn_HomeworkCompletionScore.Updated_Academic_AcademicScore3
                    .Updated_AcademicScore1TypeName2.Updated_DailyAcademicScoreDate3.HomeworkCompletionScore
                    .HomeworkCompletionDate.COUNT_TotalInterventionForThisStudent
                    .MINUTES_TotalInterventionForThisStudent
                    .Textbox114.Textbox141.Textbox4.Textbox6.MINUTES_IsTypeServiceAndOrLeadership;

                stud.Intvns.CareNum = _sortedListI[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_AcademicScore3.EarlyWarn_AcademicScore4
                    .EarlyWarn_HomeworkCompletionScore.Updated_Academic_AcademicScore3
                    .Updated_AcademicScore1TypeName2.Updated_DailyAcademicScoreDate3.HomeworkCompletionScore
                    .HomeworkCompletionDate.COUNT_TotalInterventionForThisStudent
                    .MINUTES_TotalInterventionForThisStudent
                    .Textbox114.Textbox125.OutcomeName3.Textbox7.COUNT_IsTypeCaringAdult;

                stud.Intvns.CareMin = _sortedListI[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_AcademicScore3.EarlyWarn_AcademicScore4
                    .EarlyWarn_HomeworkCompletionScore.Updated_Academic_AcademicScore3
                    .Updated_AcademicScore1TypeName2.Updated_DailyAcademicScoreDate3.HomeworkCompletionScore
                    .HomeworkCompletionDate.COUNT_TotalInterventionForThisStudent
                    .MINUTES_TotalInterventionForThisStudent
                    .Textbox114.Textbox125.Textbox9.Textbox12.MINUTES_IsTypeCaringAdult;

                stud.Intvns.HighQualTotalNum = _sortedListI[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_AcademicScore3.EarlyWarn_AcademicScore4
                    .EarlyWarn_HomeworkCompletionScore.Updated_Academic_AcademicScore3
                    .Updated_AcademicScore1TypeName2.Updated_DailyAcademicScoreDate3.HomeworkCompletionScore
                    .HomeworkCompletionDate.COUNT_TotalInterventionForThisStudent
                    .MINUTES_TotalInterventionForThisStudent
                    .Textbox114.Textbox127.OutcomeName4.Textbox13.COUNT_IsTypeHighQualitySupport;

                stud.Intvns.HighQualTotalMin = _sortedListI[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_AcademicScore3.EarlyWarn_AcademicScore4
                    .EarlyWarn_HomeworkCompletionScore.Updated_Academic_AcademicScore3
                    .Updated_AcademicScore1TypeName2.Updated_DailyAcademicScoreDate3.HomeworkCompletionScore
                    .HomeworkCompletionDate.COUNT_TotalInterventionForThisStudent
                    .MINUTES_TotalInterventionForThisStudent
                    .Textbox114.Textbox127.Textbox19.Textbox17.MINUTES_IsTypeHighQualitySupport;

                stud.Intvns.HighQualInSchoolNum = _sortedListI[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_AcademicScore3.EarlyWarn_AcademicScore4
                    .EarlyWarn_HomeworkCompletionScore.Updated_Academic_AcademicScore3
                    .Updated_AcademicScore1TypeName2.Updated_DailyAcademicScoreDate3.HomeworkCompletionScore
                    .HomeworkCompletionDate.COUNT_TotalInterventionForThisStudent
                    .MINUTES_TotalInterventionForThisStudent
                    .Textbox114.Textbox129.OutcomeName7.Textbox20.COUNT_In_School_Time;

                stud.Intvns.HighQualInSchoolMin = _sortedListI[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_AcademicScore3.EarlyWarn_AcademicScore4
                    .EarlyWarn_HomeworkCompletionScore.Updated_Academic_AcademicScore3
                    .Updated_AcademicScore1TypeName2.Updated_DailyAcademicScoreDate3.HomeworkCompletionScore
                    .HomeworkCompletionDate.COUNT_TotalInterventionForThisStudent
                    .MINUTES_TotalInterventionForThisStudent
                    .Textbox114.Textbox129.Textbox39.Textbox21.MINUTES_In_School_Time;

                stud.Intvns.HighQualOutOfSchoolNum = _sortedListI[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_AcademicScore3.EarlyWarn_AcademicScore4
                    .EarlyWarn_HomeworkCompletionScore.Updated_Academic_AcademicScore3
                    .Updated_AcademicScore1TypeName2.Updated_DailyAcademicScoreDate3.HomeworkCompletionScore
                    .HomeworkCompletionDate.COUNT_TotalInterventionForThisStudent
                    .MINUTES_TotalInterventionForThisStudent
                    .Textbox114.Textbox131.OutcomeName8.Textbox22.COUNT_Out_Of_School_Time;

                stud.Intvns.HighQualOutOfSchoolMin = _sortedListI[i].MemberName2.siteName2.StudentName2.MN_MathGradeName2.programName2
                    .MN_MathStudentStatusName2.StartDate4.EndDate2.Textbox817.Textbox11.Textbox8.Textbox827
                    .MN_PromiseFellows_StudentID_Collection.MN_PromiseFellows_StudentID.Textbox45.Textbox51
                    .Textbox52.Textbox53.Textbox55.EarlyWarn_AcademicScore3.EarlyWarn_AcademicScore4
                    .EarlyWarn_HomeworkCompletionScore.Updated_Academic_AcademicScore3
                    .Updated_AcademicScore1TypeName2.Updated_DailyAcademicScoreDate3.HomeworkCompletionScore
                    .HomeworkCompletionDate.COUNT_TotalInterventionForThisStudent
                    .MINUTES_TotalInterventionForThisStudent
                    .Textbox114.Textbox131.Textbox35.Textbox23.MINUTES_Out_Of_School_Time;

                studentList.Add(stud);
            }

            return studentList;
        }
        // Sets bools indicating whether student has improvement in specific areas (relative to a baseline rate/score).
        public static void SetImprovementBools(Student stud)
        {
            stud.Improvement = new Improvement
            {
                Attend = stud.CheckEwField.Absences && stud.Bl.Attend.Rate < stud.Ytd.Attend.Rate,
                Deten = stud.CheckEwField.Detentions &&
                        stud.Bl.Behav.DetenRate >= stud.Ytd.Behav.DetenRate,
                OfficeRefs = stud.CheckEwField.OfficeRefs &&
                             stud.Bl.Behav.OfficeRate >= stud.Ytd.Behav.OfficeRate,
                Suspend = stud.CheckEwField.Suspensions &&
                          stud.Bl.Behav.SuspendRate >= stud.Ytd.Behav.SuspendRate,
                Acad = stud.Bl.Acad.ScoreCheck && stud.Bl.Acad.Score < stud.Mo.Acad.Score,

            };

            // Improvement Any = true if student has improved in at least one of the ABC areas
            stud.Improvement.Any = stud.Improvement.Acad || (stud.Improvement.Deten && stud.Improvement.OfficeRefs &&
                                  stud.Improvement.Suspend) || stud.Improvement.Attend;

            // Improvement All = true if student has improved in each of the ABC areas
            stud.Improvement.All = stud.Improvement.Acad && (stud.Improvement.Deten && stud.Improvement.OfficeRefs &&
                                  stud.Improvement.Suspend) && stud.Improvement.Attend;
        }
 // Calculate total intervention minutes including duplicates (one intervention can count towards several intervention categories).
 public static void CalculateDuplicatedIntvnMins(Student stud)
 {
     stud.Intvns.DuplicatedTotalMins = stud.Intvns.CareMin + stud.Intvns.ServMin + stud.Intvns.HighQualInSchoolMin +
                                        stud.Intvns.HighQualOutOfSchoolMin;
 }
        // Set rate of changes for baseline vs current ABC rates
        public static void SetRateChanges(Student stud)
        {
            stud.Mo.Change.AttendRate = stud.CheckEwField.Absences
                ? PercentChange(stud.Bl.Attend.Rate, stud.Mo.Attend.Rate)
                : 0;
            stud.Mo.Change.DetenRate = stud.CheckEwField.Detentions
                ? PercentChange(stud.Bl.Behav.DetenRate, stud.Mo.Behav.DetenRate)
                : 0;
            stud.Mo.Change.OfficeRate = stud.CheckEwField.OfficeRefs
                ? PercentChange(stud.Bl.Behav.OfficeRate, stud.Mo.Behav.OfficeRate)
                : 0;
            stud.Mo.Change.SuspendRate = stud.CheckEwField.Suspensions
                ? PercentChange(stud.Bl.Behav.SuspendRate, stud.Mo.Behav.SuspendRate)
                : 0;
            stud.Mo.Change.HomeworkScore = stud.Bl.Acad.HomeworkCompletionScoreCheck
                ? PercentChangeAcad(stud.Bl.Acad.HomeworkCompletionScore, stud.Mo.Acad.HomeworkCompletionScore)
                : 0;
            stud.Mo.Change.AcadScore = stud.Bl.Acad.ScoreCheck
                ? PercentChangeAcad((double) stud.Bl.Acad.Score, (double) stud.Mo.Acad.Score)
                : 0;

            stud.Ytd.Change.AttendRate = stud.CheckEwField.Absences
                ? PercentChange(stud.Bl.Attend.Rate, stud.Ytd.Attend.Rate)
                : 0;
            stud.Ytd.Change.DetenRate = stud.CheckEwField.Detentions
                ? PercentChange(stud.Bl.Behav.DetenRate, stud.Ytd.Behav.DetenRate)
                : 0;
            stud.Ytd.Change.OfficeRate = stud.CheckEwField.OfficeRefs
                ? PercentChange(stud.Bl.Behav.OfficeRate, stud.Ytd.Behav.OfficeRate)
                : 0;
            stud.Ytd.Change.SuspendRate = stud.CheckEwField.Suspensions
                ? PercentChange(stud.Bl.Behav.SuspendRate, stud.Ytd.Behav.SuspendRate)
                : 0;
            stud.Ytd.Change.HomeworkScore = stud.Bl.Acad.HomeworkCompletionScoreCheck
                ? PercentChangeAcad(stud.Bl.Acad.HomeworkCompletionScore, stud.Mo.Acad.HomeworkCompletionScore)
                : 0;
            stud.Ytd.Change.AcadScore = stud.Bl.Acad.ScoreCheck
                ? PercentChangeAcad((double) stud.Bl.Acad.Score, (double) stud.Mo.Acad.Score)
                : 0;
        }