<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
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<br><br /><hr />Get Hotmail on your mobile from Vodafone <a href='http://clk.atdmt.com/UKM/go/111354028/direct/01/' target='_new'>Try it Now</a></body>
</html>