Skip to content

Commit 93edbc2

Browse files
committed
Fix date arithmetic sign error
1 parent de5d5fc commit 93edbc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/penn_chime/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def __init__(self, p: Parameters):
148148

149149
def run_projection(self, p):
150150
if p.mitigation_date is not None:
151-
mitigation_day = (p.current_date - p.mitigation_date).days
151+
mitigation_day = -(p.current_date - p.mitigation_date).days
152152
else:
153153
mitigation_day = 0
154154

0 commit comments

Comments
 (0)