• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Calculate salary

Calculate salary 8 years 11 months ago #35041

  • hasse
  • hasse's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hello guys,

I'm trying to construct a form on our site calculating salary.

I'd like it to work as follows.

Input area where you can put what year you are born (numbers) for example 1984.

Then invoiced sum for work done (numbers) for example 10000.

And finally a field with calculated salary (calculation).

Problem is the input area for year born - because of that tax is different depending on year you are born.

If you are 76 year or older tax is 0%.
If you are 67 to 75 tax is 10.21%.
If you are 26 to 66 tax is 31.42%.
And if you are 25 years or younger tax is 15.49%.

So how to specify this in one input field so that the value of the field is the correct tax percentage when calculating the different fields?

BR

Grim
The administrator has disabled public write access.

Calculate salary 8 years 11 months ago #35070

  • qubertman
  • qubertman's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 5
If you don't need to capture the actual year, you can set up a radio group like this:
76|If you are 76 year or older tax is 0%.[p0]
67-75|If you are 67 to 75 tax is 10.21%.[p.1021].
26-66|If you are 26 to 66 tax is 31.42%.[p.3142]
25|And if you are 25 years or younger tax is 15.49%.[p.1549]
Last Edit: 8 years 11 months ago by qubertman.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!