Commit af96d1b7 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 956e8ec4
...@@ -100,10 +100,10 @@ function run(data, config,risk) { ...@@ -100,10 +100,10 @@ function run(data, config,risk) {
perp = perp / 100 perp = perp / 100
let sum = Math.abs(maxAllocatedMoney) let sum = Math.abs(maxAllocatedMoney)
if (total ===0)
sum=0
for (let i = 0; i < total; i++) for (let i = 0; i < total; i++)
sum = sum + (sum * perp) sum = sum + (sum * perp)
sum=sum-Math.abs(maxAllocatedMoney)
let newCompund = sum / dur let newCompund = sum / dur
let compoundPerMonth = (newCompund * 30 * 100) / Math.abs(maxAllocatedMoney) let compoundPerMonth = (newCompund * 30 * 100) / Math.abs(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