Liliana797979

Minning Rig

Nov 16th, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function miningRig() {
  2.     let videoCartPrice = Number(arguments[0]);
  3.     let adapterPrice = Number(arguments[1]);
  4.     let currentPrice = Number(arguments[2]);
  5.     let days = Number(arguments[3])
  6.     let profitCartForDay = Number(arguments[4]);    
  7.  
  8.     totalCartPrice = videoCartPrice * 13;
  9.     totalAdapterPrice = adapterPrice * 13;
  10.     totalMoney = totalAdapterPrice + totalCartPrice + 1000;
  11.     profitCartForDay = 1.80;
  12.     totalCartProfit = 13 * profitCartForDay;
  13.     days = totalMoney / totalCartProfit;    
  14.  
  15.     console.log(`${totalMoney}`);
  16.     console.log((Math.ceil)(days));
  17. }
  18.  
  19. miningRig(700, 15, 0.20, 2);
Advertisement
Add Comment
Please, Sign In to add comment