Commit a74b91b0 authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent 28695227
...@@ -156,7 +156,7 @@ async function run() { ...@@ -156,7 +156,7 @@ 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[i].profit allMonthLoss = allMonthLoss + (dates[i].profit * 1.2)
let worth = balance-lastBalance+allMonthLoss let worth = balance-lastBalance+allMonthLoss
if ( worth > base) { if ( worth > base) {
......
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