# Payroll documentation, some examples are needed

One good friend ask me this:

Hi Nhomar,

How are you?

You know where can I get some examples, or help to configure it?

For example:

1. The employe receive 3 bonus calculated by a % of the base;

2. Then I have to take out 2 taxes (each one depending the base value, so if < 1000 = 1%, 1000<=x<2000 3%, 2000<=x<10000 10%, <10000 20%, etc);

NOTE: This part is trickiest because the treasury calculates like this:

a) supose 50.000 = 1.000 + 1.000 + 8.000 + 10.000 + 30.000

b) tax to pay = 1.000 x 1% + 1.000 x 3% + 8.000 x 10% + 30.000 x 20% (they apply the percentage by step)

3. There is also other extra tax (tax_C) that company have to pay (24% off base_abc);

1. base_abc = (base + base * bonus_a + base * bonus_b + base * bonus_c);

2. salary_to_pay= base_yzw - base_yzw * tax_A - base_yzw * tax_B;

3. total_salary_

## Question information

- Language:
- English Edit question

- Status:
- Answered

- Assignee:
- No assignee Edit question

- Last query:

- Last reply:

## Can you help with this problem?

Provide an answer of your own, or ask Nhomar - Vauxoo for more information if necessary.