You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Car Duty Calculation Errors

Question
36
Views
0
Comments

Content

Hi,

I am facing a challenge on my OPA Project, when i deploy the project, the only Models that are calculating and displaying results are the following tables inside the Rules Document:

1. Tractors-USD
2. Tractors-KES
3. Tractors-EUR

The rest of the models in the following tables are not calculating, the results are being shown in zeros;

1. Generators-KES
2. Trailers-KES
3. Motor Cycles-KES
4. Motor Vehicles-KES
5. Motor Vehicles EUR
6. Motor Vehicles USD

Kindly assist me in figuring out where the problem is.

My code is displayed below;
 

Version

Oracle policy Modelling 17D

Code Snippet

             
1 USD = 103.40
1 EUR = 121.45


Price
Tractors-USD * 1 USD 	tractors-KES=0 and
tractors-EUR=0
Tractors-EUR * 1 EUR 	tractors-USD=0 and
tractors-KES=0
Tractors-KES	otherwise








Model1= model
no of months = MonthDifference(CurrentDate(); Date of import)


current year = ExtractYear(the current date)
no of years = current year - vehicle purchase year
Extra Depreciation = 0
no













Direct Imports

Custom value = ((Price / 1.25) * ( 1 - DEPRECIATION FOR DIRECT IMPORTS )) *(1- Extra Depreciation) 
Import Duty = custom value * (25/100)
Excise Value = custom value + Import Duty
VAT Value = custom value + Import Duty
VAT 16% = VAT Value * (16/100)
Excise

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!