Skip to content

Commit

Permalink
Don't Allow Pell Grant EFC to be Negative (#3218)
Browse files Browse the repository at this point in the history
* floor efc at 0

* add changelog entry

---------

Co-authored-by: Caleb <[email protected]>
Co-authored-by: Max Ghenis <[email protected]>
  • Loading branch information
3 people authored Nov 4, 2023
1 parent 13c6389 commit 3158a3b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: patch
changes:
fixed:
- pell_grant_efc now can not be negative
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ def formula(person, period, parameters):
where(
automatic_zero,
0,
head_contribution + dependent_contribution,
max_(0, head_contribution + dependent_contribution),
),
head_contribution,
where(automatic_zero, 0, head_contribution),
max_(0, head_contribution),
where(automatic_zero, 0, max_(0, head_contribution)),
],
)

0 comments on commit 3158a3b

Please sign in to comment.