Skip to content

Commit 8c143a2

Browse files
committed
changed location stability date for submiited on
1 parent 9b4eb68 commit 8c143a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

OFM.Infrastructure.WebAPI/Services/Processes/ApplicationScore/ScoreStrategy.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public Task<bool> EvaluateAsync(IComparisonHandler comparisonHandler, ScoreParam
207207
if (application.FacilityType?.ToLower()?.Trim() == "rent/lease")
208208
{
209209
DateTime? leaseStartDate = application.LeaseStartDate;
210-
DateTime? leaseEndDate = application.LeaseEndDate;
210+
DateTime? leaseEndDate = application.SubmittedOn;
211211
return Task.FromResult(comparisonHandler.Handle(_operator, application.FacilityType == "Rent/Lease" ? CheckLocationStability(leaseStartDate, leaseEndDate) : "No", comparisonValue));
212212
}
213213
if (application.FacilityType?.ToLower()?.Trim() == "owned with mortgage" || application.FacilityType?.ToLower()?.Trim() == "owned without mortgage")
@@ -224,7 +224,7 @@ static string CheckLocationStability(DateTime? leaseStart, DateTime? leaseEnd)
224224
// Calculate lease duration in days
225225
int leaseDurationDays = (leaseEnd.Value - leaseStart.Value).Days;
226226
// Check if lease duration is at least 730 days (2 years)
227-
return leaseDurationDays >= 730 && leaseEnd > new DateTime(2026, 9, 1) ? "Yes" : "No";
227+
return leaseDurationDays >= 730? "Yes" : "No";
228228
}
229229

230230
}

0 commit comments

Comments
 (0)