diff --git a/src/Application/Helper/Statistieken.php b/src/Application/Helper/Statistieken.php index 6d59fe3..09a41c3 100644 --- a/src/Application/Helper/Statistieken.php +++ b/src/Application/Helper/Statistieken.php @@ -27,8 +27,8 @@ class Statistieken { $huidigSaldo = (double)$saldo; $yas = array($huidigSaldo); for($i = 1; $i <= $dagen; $i++){ - $af = (double)$eraf[array("datum" => date("Y-m-d", strtotime("-" . $i . " day")))]['bedr']; - $bij = (double)$erbij[array("datum" => date("Y-m-d", strtotime("-" . $i . " day")))]['bedr']; + $af = (double)$eraf[array("datum" => date("Y-m-d", strtotime("-" . $i + 1 . " day")))]['bedr']; + $bij = (double)$erbij[array("datum" => date("Y-m-d", strtotime("-" . $i + 1 . " day")))]['bedr']; if(!isset($af)){ $af = 0; }