From 2180ad3d66d94c8948af1e259fcc8ec10737fb1c Mon Sep 17 00:00:00 2001 From: gonzo Date: Fri, 19 May 2023 11:04:44 +0200 Subject: added mortgage loans --- straight_line_loan.c | 1 + 1 file changed, 1 insertion(+) (limited to 'straight_line_loan.c') 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; } -- cgit v1.2.3