summaryrefslogtreecommitdiffstats
path: root/straight_line_loan.c
diff options
context:
space:
mode:
Diffstat (limited to 'straight_line_loan.c')
-rw-r--r--straight_line_loan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/straight_line_loan.c b/straight_line_loan.c
index 0d25247..73ba859 100644
--- a/straight_line_loan.c
+++ b/straight_line_loan.c
@@ -20,6 +20,7 @@ float sl_update(contract *c) {
c->I = c->r * c->P;
c->P = c->P - c->D;
c->A = c->D + c->I;
+ /* c->D is fixed ! */
return c->A;
}