Advertisement
bousaid

WINDEV PROCEDURE IRG 2022

Jan 3rd, 2022 (edited)
465
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. // IRG 2022 PROCEDURE By Boussaid Mustafa
  2. // APC SALI 2022
  3. PROCEDURE irg2022(i)
  4.  
  5. cyIrgn is currency
  6. p is currency = IntegerPart((IntegerPart(i))/10)*10
  7.  
  8. IF (i <= 30000 ) THEN
  9. cyIrgn = 0
  10. ELSE
  11.  
  12. SWITCH i
  13. CASE 20000 TO 40000 : cyIrgn = (p - 20000) * 0.23
  14. CASE 40000 TO 80000: cyIrgn = 4600 + (p - 40000) * 0.27
  15. CASE 80000 TO 160000: cyIrgn = 15400 + (p - 80000) * 0.3
  16. CASE 160000 TO 320000: cyIrgn = 39400 + (p - 160000) * 0.33
  17. OTHER CASE: cyIrgn = 92200 + (p - 320000) * 0.35
  18. END
  19.  
  20. Abat is real = (0.4 * cyIrgn)
  21. IF Abat < 1000 THEN Abat = 1000
  22. IF Abat > 1500 THEN Abat = 1500
  23. cyIrgn = cyIrgn - Abat
  24.  
  25. IF i <= 35000 THEN
  26. cyIrgn = Round(cyIrgn * (137/51)-(27925/8),1)
  27. END
  28. END
  29. RESULT cyIrgn
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement