To register a script that substitutes in the formula, the number depending on the value
The script multiplies the value with the value of likes or members, where likes = 2 and members=3.
Once in the value of the digit can substitute, as it is needed for further operation of the program.
In JS still a newbie, so asking for help from you....
<input type="number" class="amount" placeholder="Quantity">