Skip to content

Commit

Permalink
Fix typo with program rep penalty
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanKell committed Dec 2, 2023
1 parent 8eb24b0 commit ad4f136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/RP0/Programs/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ private double GetRepLossAtFrac(double frac)
if (frac <= 1d)
return 0d;

return RepPenaltyPerYearLate * (1d - frac) * DurationYears;
return RepPenaltyPerYearLate * (frac - 1d) * DurationYears;
}

public string GetDescription(bool extendedInfo)
Expand Down

0 comments on commit ad4f136

Please sign in to comment.