Count Robux with Tax

I have made a counter here:


As you can see, I have set the value to 144 Robux. It calculates the Robux earnings I will get when somebody buys my game pass.
So from 144 Robux (30% tax) I would receive 100 Robux (as seen on the earnings tab).

Robux with tax should say: 206 Robux. Why? Robux with tax is basically a label that counts how much Robux should I set the game pass to to get that 144 Robux.
How can I get Robux with tax (number)?

Feel free to ask more questions. Also remember that the game pass tax is 30%.

2 Likes

144 + 30%? yeah maybe 144+30% = 206?

1 Like

To get %30 of 144 you would do:

local Price = 144
local twentypercentage = 144 / 5
local tenpercentage = 144 / 10
local RobuxWithTax = twentypercentage + 
tenpercentage + Price

Side note = values will return boolean.

withTax = robux * 10 / 7

This will find the cost with the tax if you want to earn a certain amount of robux

Your solution does not work since it returns 187.2 Robux and that is not true.

1 Like

That is a great solution. However I would add math.round() to the code, like this:

local robux = 100 withTax = math.round(robux * 10 / 7) print(withTax)

Results:

Vid.wmv (603.8 KB)

1 Like

That is actually true I searched on some website and that is the return it would give

No it is not. Test with Game Pass. Also it is 30% for me and not 20 or 10.

IMG_20210331_144212

Google doesn’t lie mate, your choice. it’s tested and working, Wake me up if I did something wrong.

I was not looking what you did in the calculator but here are the results:

purchase1

(the second one is my Discord webhook telling me about the purchase)

Lots of people already bought my product so yes, Discord webhook is right here.

1 Like

Sorry, my bad I got the earnings by accident. :flushed: