The scenerio is this: During signing up, Users will be given ‘x’ amount of coins. This is a resource that is finite but will refresh every month.
For example, A user may have 50 coins on the first of january. Each time the user clicks a ‘submit’ button, they can reduce the amount of coins they have by any amount they choose. They can continue to click this button and reduce their monthly coin amount as much as they want up until their coin balance is 0.
Say this user reduces his coin balance by 15 the first time, 25 the second, and finally 10 the third (these numbers are chosen by the user so can be retrieved from an input), how could I show the remaining coins before they were to press the submit button.
Like this, but with the numbers dynamic.