Advertisement
desislava_topuzakova

01

Aug 20th, 2022
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. function miningRig(input){
  2. let videocardprice = Number(input[0])
  3. let transition = Number(input[1])
  4. let currencyPrice = Number(input[2])
  5. let profit = Number(input[3])
  6.  
  7. let priceForCards = videocardprice * 13;
  8. let transitionPrice = transition * 13;
  9. let totalMoney = priceForCards + transitionPrice + 1000;
  10. let profitForday = profit - currencyPrice
  11. let totalProfit = profitForday * 13;
  12. let totalDays = totalMoney / totalProfit
  13.  
  14. console.log(totalMoney);
  15. console.log(Math.ceil(totalDays));
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement