kbisho7848
New Member
- Joined
- Apr 16, 2019
- Messages
- 1
I'm having a lot of trouble starting this sub in vba. Here is what I have already, but I'm not sure if I'm taking to right angle.
Sub tax()Dim income As Double
Dim tax As Double
income = InputBox("enter your income")
If income >= 200000 Then
tax = ".35/income"
else if income
End Sub
Assume you want to create a calculator that can help people to calculate their taxes. You will create an input box to ask people about their income and the program will display their taxes in a message box ank ask the users if they have another income to calculate its taxes. Call the module Tax. Assign the macro to a button. The macro should keep looping until the user click no for having no more income to calculate the taxes for. The program should calculate the tax for one income per time
Sub tax()Dim income As Double
Dim tax As Double
income = InputBox("enter your income")
If income >= 200000 Then
tax = ".35/income"
else if income
End Sub
Assume you want to create a calculator that can help people to calculate their taxes. You will create an input box to ask people about their income and the program will display their taxes in a message box ank ask the users if they have another income to calculate its taxes. Call the module Tax. Assign the macro to a button. The macro should keep looping until the user click no for having no more income to calculate the taxes for. The program should calculate the tax for one income per time
- 35% on income greater than or equal to $200000
- 29% on income greater than or equal to $70000 and less that $200000
- 27% on income greater than or equal to $30000 and less that $70000
- 17% on income greater than or equal to $10000 and less that $30000
- 12% on income greater than or equal to $3000 and less that $10000
- Otherwise it will be 0