Commit a1215c6c authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent 2124bdbb
......@@ -156,8 +156,8 @@ async function run() {
let allMonthLoss = 0
for (let i = 0; i < dates.length; i++)
if (dates[i].profit < 0)
allMonthLoss = allMonthLoss + dates.profit[i]
let worth = balance-allMonthLoss
allMonthLoss = allMonthLoss + dates[i].profit
let worth = balance-lastBalance-allMonthLoss
if ( worth > base) {
base = worth
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment