<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"><<a href="mailto:vinoth.k@technologiaworld.com">vinoth.k@technologiaworld.com</a>></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;"> </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 </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;"> </span></font></p>
<p style="margin-bottom: 12pt;"><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma;">I'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 < 65<br>
then <br>
allowance = 5225<br>
if age >= 65 and age < 75 <br>
then <br>
allowance = 7550 - ((net income - 20,900) * 0.5)<br>
if allowance < 5225<br>
then allowance = 5225<br>
if age >= 75 <br>
then <br>
allowance =7690 - ((net income - 20,900) * 0.5)<br>
if allowance < 5225<br>
then allowance = 5225<br>
<br>
if 1=1 (run always)<br>
// calculate taxableOtherIncome (earnings, trading profits)<br>
taxableOtherIncome = otherIncome - allowance<br>
allowanceUsed = taxableOtherIncome - otherIncome<br>
allowanceRemaining = allowance - allowanceUsed<br>
allowance = allowanceRemaining<br>
<br>
// calculate taxableSavingsIncome<br>
taxableSavingsIncome = savingsIncome - allowance<br>
allowanceUsed = taxableSavingsIncome - savingsIncome<br>
allowanceRemaining = allowance - allowanceUsed<br>
allowance = allowanceRemaining<br>
<br>
// calculate taxableDividendIncome<br>
...<br>
<br>
There seems to be a fairly strict order to some of the calculations. 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>