Ejemplo n.º 1
0
 private static decimal GetVAFundingFee(decimal _loanAmount, LoanPurpose LoanPurpose, VeteranType VeteranType, int p, bool IsVAFirstTime, out decimal VAFundingFee, out decimal VAFundingPercent)
 {
     VAFundingFee = 0m;
     VAFundingPercent = 0m;
     return 0m;
 }
Ejemplo n.º 2
0
        public static decimal GetPurchaseClosingCosts(
            decimal LoanAmount, 
            LoanType loanType, 
            bool AddSurvey, 
            bool GetHOATransfer, 
            VeteranType? VetType, 
            bool isVAFirstTime,
            decimal PurchasePrice,
            out decimal VAFundingPercent,
            out decimal VAFundingFee
        )
        {
            VAFundingFee = 0;
            VAFundingPercent = 0;

            return GetClosingCosts(LoanAmount, LoanPurpose.Purchase, loanType, AddSurvey, GetHOATransfer, isVAFirstTime, VetType, PurchasePrice, null, null, out VAFundingPercent, out VAFundingFee);
        }
Ejemplo n.º 3
0
 public static double GetVAFundingFee(double LoanAmount, VeteranType VeteranType, double DownPaymentPercentage, bool IsFirstTimeUse)
 {
     double Percentage = 0;
     if (VeteranType == FullerHelpers.VeteranType.RegularMilitary)
     {
         if (DownPaymentPercentage <= 0)
         {
             if (IsFirstTimeUse == true)
             {
                 Percentage = 2.15;
             }
             else
             {
                 Percentage = 3.3;
             }
         }
         else if (DownPaymentPercentage >= 5 && DownPaymentPercentage < 10)
         {
             if (IsFirstTimeUse == true)
             {
                 Percentage = 1.5;
             }
             else
             {
                 Percentage = 1.5;
             }
         }
         else if (DownPaymentPercentage >= 10)
         {
             if (IsFirstTimeUse == true)
             {
                 Percentage = 1.25;
             }
             else
             {
                 Percentage = 1.25;
             }
         }
     }
     else if (VeteranType == FullerHelpers.VeteranType.ReservesOrNationalGaurd)
     {
         if (DownPaymentPercentage <= 0)
         {
             if (IsFirstTimeUse == true)
             {
                 Percentage = 2.4;
             }
             else
             {
                 Percentage = 3.3;
             }
         }
         else if (DownPaymentPercentage >= 5 && DownPaymentPercentage < 10)
         {
             if (IsFirstTimeUse == true)
             {
                 Percentage = 1.75;
             }
             else
             {
                 Percentage = 1.75;
             }
         }
         else if (DownPaymentPercentage >= 10)
         {
             if (IsFirstTimeUse == true)
             {
                 Percentage = 1.5;
             }
             else
             {
                 Percentage = 1.5;
             }
         }
     }
     else if (VeteranType == FullerHelpers.VeteranType.DisabledVeteran)
     {
         Percentage = 0;
     }
     return (Percentage / 100) * LoanAmount;
 }
Ejemplo n.º 4
0
        public static decimal GetClosingCosts(
            decimal LoanAmount, 
            LoanPurpose LoanPurpose, 
            LoanType LoanType, 
            bool AddSurvey, 
            bool GetHOATransfer,
            bool? IsVAFirstTime,
            VeteranType? VeteranType, 
            decimal? PurchasePrice,
            DateTime? OriginalCloseDate,
            decimal? EstimatedLoanPayoff,
            out decimal VAFundingPercent,
            out decimal VAFundingFee
            )
        {
            VAFundingFee = 0;
            VAFundingPercent = 0;
            var ClosingCosts = 0m;

            decimal
                SellerContributions = 0m,
                NonAllowableContributions = 1990m;

            bool IsCashOutRefi = false,
                T17 = true,
                T19 = true,
                T36 = true,
                R19 = true,
                R24 = true,
                T33 = true,
                T42 = true,
                T421 = true;

            if (AddSurvey == true)
            {
                var surveyCost = 200;
                ClosingCosts += surveyCost;
            }

            if (GetHOATransfer == true)
            {
                var HoaTransferFee = 100;
                ClosingCosts += HoaTransferFee;
            }

            if (LoanPurpose == FullerHelpers.LoanPurpose.Purchase)
            {
                ClosingCosts = 2465m;
                if (LoanType == FullerHelpers.LoanType.VA)
                {
                    SellerContributions = 1990;
                    VAFundingFee = GetVAFundingFee(LoanAmount, LoanPurpose, VeteranType.Value, 0, IsVAFirstTime.Value, out VAFundingFee, out VAFundingPercent);
                    ClosingCosts += VAFundingFee;
                }

                if (LoanAmount == 0 || PurchasePrice == 0)
                {
                    throw new Exception("Cannot be Zero");
                }
                else
                {

                }
            }
            else if(LoanPurpose == FullerHelpers.LoanPurpose.Refinance)
            {
                ClosingCosts += 2557.42m;
                if (LoanType == FullerHelpers.LoanType.VA)
                {
                    SellerContributions = 1990;
                    VAFundingFee = GetVAFundingFee(LoanAmount, LoanPurpose, VeteranType.Value, 0, IsVAFirstTime.Value, out VAFundingFee, out VAFundingPercent);
                    ClosingCosts += VAFundingFee;
                }

                if (LoanAmount == 0 || EstimatedLoanPayoff == 0 || OriginalCloseDate == null)
                {
                    throw new Exception("");
                }
            }
            return ClosingCosts;
        }