Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleCar Allowance (Commuter) / KM-godtgjørelse (Pendler)
Info

Note: In our case we use vessel rates 5 and 6 for the car allowance (Commuter).
But you may use different ones.

  1. Under the General tab fill in the entry Name and set it to Allowance.

  2. Under the Input tab setup the following fields.

  3. Under the Сalculation tab, define the necessary accounts and accounting dimensions.
    Then create a separate script for the Car Allowance calculation.


    This is the example of the script that you can create. Click here to learn more about the scripts.
    In our case we use global rate 21 and 22 for the calculation. But you may use different ones.

    Code Block
    languagenone
    //Setting Employer
    //Here you need to add a line for calculating the employer organization 
    //e.g. @@ADD:007.
    //You can check your other other entries for 
    
    //L23 - Input field 3 used for Rate
    //VB5 = Vessel rate line 5 for max allowance rate
    
    L23=VB5 
    
    //L61 - calculated amount 1 
    //L67 - calculated amount 7
    //L22 - Input field 2 used for Kilometer
    //L23 - Input field 3 used for Rate
    //L21 - Input field 1 used for Amount
    
    L61=L22*L23
    L21=L61
    L67=L21
    
    //Calculation of taxable amount (Fordeling av skattepliktig beløp)
    //VB6 = Vessel rate line 6 for non-taxable rate
    //VB5 = Vessel rate line 5 for max rate
    //(VB5-VB6) - taxable part
    //L67 - calculated amount 7
    //L69 - calculated amount 9
    //L70 - calculated amount 10
    
    IF GB5VB5 > GB6VB6 THEN
      L70=(VB5-VB6) * L22
      L69=L67-L70
    ELSE
      L70=0
      L69=L67
    ENDIF
    
    //L62 - calculated amount 2
    //W81 - accumulator for tax table
    //P50c - Company rate for region
    
    W81=W81+L70       //Taxable (Skattepliktig) 
    L62=L70*P50c      //Employers fee

  4. Setup the fields to be available on the Payslip.

  5. Set the following EDAG coding.