How to multiply values in jquery?

Need help in implementing a small cost calculator.
The calculator has a default value of "30" (days), each press of the button should be added 30 days (30, 60, 90, 120, 150, 180) and to reset back to 30.
The final cost must also be multiplied by 2 when clicked.

the <div>
 <p>Company <span class="one">30</span></p>
 <button>to Add 30 days to class one</button>
 <p>Total value of <span class="two">100</span></p>
 </div>
June 10th 19 at 15:07
2 answers
June 10th 19 at 15:09
Solution
Lapsed on jQuery comments: https://codepen.io/hogart/pen/ppJpbL?editors=1010

Let's hope that you know what actually:
  • To multiply numbers jQuery not needed
  • In General, for this problem, jQuery is not a necessity
A little mistake in the description. When you click it should add +30 days. (30, 60, 90, 120, 150, 180 again to 30), and the cost and multiplied by 2. So it is possible to implement?
Thanks in advance :) - theron_Bosco commented on June 10th 19 at 15:12
easy — 10$ usd on paypal or a steam wallet. - genevieve_Upton commented on June 10th 19 at 15:15
June 10th 19 at 15:11
https://github.com/cbrandolino/jQuery-basic-arithm...

$.multiply(arg1, arg2 [, args...]) multiplies two or more numbers;

Find more questions by tags jQueryJavaScript