<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Yes. It would perfectly suit your requirement.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div>

<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'>thanks and regards,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'>vinoth s&nbsp;</span><o:p></o:p></font></p>

</div>

</div>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] <b><span style='font-weight:bold'>On
Behalf Of </span></b>Carolyn Green<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, September 10,
2008 11:06 AM<br>
<b><span style='font-weight:bold'>To:</span></b> rules-users@lists.jboss.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> [rules-users] drools
appropriate for calculating <st1:country-region w:st="on"><st1:place w:st="on">uk</st1:place></st1:country-region>
tax</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>I'm currently studying <st1:country-region
w:st="on"><st1:place w:st="on">uk</st1:place></st1:country-region> tax, and I
was wondering whether drools would be suitable for calculating an individuals
tax liability.<br>
<br>
There are lots of rules such as:<br>
<br>
if age &lt; 65<br>
then <br>
&nbsp; allowance = 5225<br>
if age &gt;= 65 and age &lt; 75 <br>
then <br>
&nbsp; allowance = 7550 - ((net income - 20,900) * 0.5)<br>
&nbsp; if allowance &lt; 5225<br>
&nbsp;&nbsp;&nbsp; then allowance = 5225<br>
if age &gt;= 75 <br>
then <br>
&nbsp; allowance =7690&nbsp; - ((net income - 20,900) * 0.5)<br>
&nbsp; if allowance &lt; 5225<br>
&nbsp;&nbsp;&nbsp; then allowance = 5225<br>
<br>
if 1=1 (run always)<br>
&nbsp; // calculate taxableOtherIncome (earnings, trading profits)<br>
&nbsp; taxableOtherIncome = otherIncome - allowance<br>
&nbsp; allowanceUsed = taxableOtherIncome - otherIncome<br>
&nbsp; allowanceRemaining = allowance - allowanceUsed<br>
&nbsp; allowance = allowanceRemaining<br>
<br>
&nbsp; // calculate taxableSavingsIncome<br>
&nbsp; taxableSavingsIncome = savingsIncome - allowance<br>
&nbsp; allowanceUsed = taxableSavingsIncome - savingsIncome<br>
&nbsp; allowanceRemaining = allowance - allowanceUsed<br>
&nbsp; allowance = allowanceRemaining<br>
<br>
&nbsp; // calculate taxableDividendIncome<br>
&nbsp; ...<br>
<br>
There seems to be a fairly strict order to some of the calculations.&nbsp; I.e.
allowance should be deducted from otherIncome before savingsIncome or dividend
income.<br>
<br>
Is drools suitable for this type of application?<br>
<br>
Many thanks,<br>
<br>
C<st1:PersonName w:st="on">hr</st1:PersonName>is<o:p></o:p></span></font></p>

<div class=MsoNormal align=center style='text-align:center'><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>

<hr size=2 width="100%" align=center>

</span></font></div>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'>Get Hotmail on your mobile from Vodafone <a
href="http://clk.atdmt.com/UKM/go/111354028/direct/01/" target="_new">Try it
Now</a><o:p></o:p></span></font></p>

</div>

</body>

</html>