Commit a1215c6c authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent 2124bdbb
...@@ -156,8 +156,8 @@ async function run() { ...@@ -156,8 +156,8 @@ async function run() {
let allMonthLoss = 0 let allMonthLoss = 0
for (let i = 0; i < dates.length; i++) for (let i = 0; i < dates.length; i++)
if (dates[i].profit < 0) if (dates[i].profit < 0)
allMonthLoss = allMonthLoss + dates.profit[i] allMonthLoss = allMonthLoss + dates[i].profit
let worth = balance-allMonthLoss let worth = balance-lastBalance-allMonthLoss
if ( worth > base) { if ( worth > base) {
base = worth 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