<div dir="ltr">especially ruleflow for defining the order<br><br>Best Regards,<br>Michal<br><br><div class="gmail_quote">On Wed, Sep 10, 2008 at 6:56 AM, Vinoth Kumar Somasundaram <span dir="ltr">&lt;<a href="mailto:vinoth.k@technologiaworld.com">vinoth.k@technologiaworld.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">












<div link="blue" vlink="blue" lang="EN-US">

<div>

<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">Yes. It would perfectly suit your requirement.</span></font></p>

<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<div>

<div>

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

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

</div>

</div>

<div>

<div style="text-align: center;" align="center"><font size="3" face="Times New Roman"><span style="font-size: 12pt;">

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

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

<p><b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma;">
<a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a>
[mailto:<a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a>] <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> <a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> [rules-users] drools
appropriate for calculating uk
tax</span></font></p>

</div><div><div></div><div class="Wj3C7c">

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;">&nbsp;</span></font></p>

<p style="margin-bottom: 12pt;"><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma;">I&#39;m currently studying uk 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>
Chris</span></font></p>

<div style="text-align: center;" align="center"><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma;">

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

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

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

</div></div></div>

</div>


<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br></div>