diff --git a/assets/js/parts/main.js b/assets/js/parts/main.js
index c5f43f9c..e6bf666a 100755
--- a/assets/js/parts/main.js
+++ b/assets/js/parts/main.js
@@ -255,15 +255,16 @@ angular
};
$scope.previsionTable = () => {
- let turns = 60;
+ let turns = 24;
let monthly = $scope.sumMonthlyExpenses();
let available = $scope.disponibility;
let previsionTable = [];
for (let i = 0; i <= turns; i++) {
// TODO take in account delays in expenses
+ available = available - monthly;
let newLine = {
expense: monthly,
- available: available - monthly,
+ available: available,
};
previsionTable.push(newLine);
}