//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 |