Commit c0c7f33f authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent c02c4eef
......@@ -70,8 +70,9 @@ function run(data, config) {
let dur = getMinDiff(data[0].openDate, data[data.length - 1].closeDate)
let newT=total/dur
let percentage = maxReserve + total
let totalFinal=total* config.target
let newT=totalFinal/dur
let percentage = maxReserve + totalFinal
percentage = maxAllocatedMoney / percentage
let minus = 0
if (percentage < 0) {
......@@ -95,6 +96,7 @@ function run(data, config) {
avgLevel: maxLevel / total,
maxLevel: maxLevel,
dur:dur,
totalFinal:totalFinal,
maxAllocatedMoney: maxAllocatedMoney,
......
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