Commit d395f94c authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 442b3da6
...@@ -80,7 +80,7 @@ function run(data, config) { ...@@ -80,7 +80,7 @@ function run(data, config) {
percentage = null percentage = null
} }
let profitPerMonth=(newT * 30 * 100)/maxReserve let profitPerMonth=(newT * 30 * 100)/maxAllocatedMoney
// let percentage2 = maxReserve + newT // let percentage2 = maxReserve + newT
...@@ -91,14 +91,14 @@ function run(data, config) { ...@@ -91,14 +91,14 @@ function run(data, config) {
// percentage2 = null // percentage2 = null
// } // }
let perp=(config.target * 100)/Math.abs(maxReserve) let perp=(config.target * 100)/Math.abs(maxAllocatedMoney)
perp=perp/100 perp=perp/100
let sum=Math.abs(maxReserve) let sum=Math.abs(maxAllocatedMoney)
for (let i=0;i<total;i++) for (let i=0;i<total;i++)
sum = sum + (sum* perp) sum = sum + (sum* perp)
let newCompund=sum/dur let newCompund=sum/dur
let compoundPerMonth=(newCompund * 30 * 100)/Math.abs(maxReserve) let compoundPerMonth=(newCompund * 30 * 100)/Math.abs(maxAllocatedMoney)
let opt = { let opt = {
......
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