home *** CD-ROM | disk | FTP | other *** search
- /* FINANCE.RSS This rule set determines how much money an */
- /* investment client should invest in various */
- /* investments. This rule set also checks various */
- /* aspects of an individuals financial picture */
- /* against normal averages and provides certain */
- /* advice. */
-
- INITIAL:
- clear
- if not inuse("investor") /* User is not performing FINANCE */
- e.lstr=60
- at 12,20 ?"This rule set can only be consulted"
- at 14,23 ?"from within the demo program."
- bchn=true
- sleep(2)
- e.serr=true
- else
- at 5,20 ?"Beginning financial analysis for client:"
- at 8,30 ?investor.fname,investor.lname,
- perform getinfo
- calc compute
- nothing = unknown
- complt = unknown
- fchn = false
- e.rigr = "a"
- if (currec(investor) ne 0) then
- tage = investor.age
- tmstat = investor.mstat
- endif
- endif
-
- GOAL: bchn
-
- DO: if inuse("investor")
- wtcl
- else
- e.serr = false
- clear
- endif
-
- RULE: R0
- IF: true
- THEN: bchn = true
- COMMENT:This rule set is not set up for back chaining
- It should be consulted with forward chaining
-
- RULE: R1
- IF: #n24 > (0.13 * #e34)/12
- THEN: wtclear
- ?" If your current interest rate exceeds 13%, then you can probably"
- ?" benefit from refinancing your mortgage to a more competitive"
- ?" rate. Current rates are close to 9.5%."
- CHANGES:nothing
- REASON: If the current mortgage interest rate exceeds 13%,
- you can probably benefit from refinancing to the
- current rates of arount 9.5 percent
- COMMENT: Check for unacceptable interest rates
-
- RULE: R2
- IF: #e14 < 2000
- THEN: wtclear
- ?" You have IRA savings of less than $2000. This is clearly not"
- ?" using IRAs to the extent possible. Money should be put into an"
- ?" IRA, generally even if one has to borrow to do so."
- CHANGES:nothing
- REASON: If you have iras less than 2000, then you are clearly not
- using iras to the extent possible.
- COMMENT: Might even want to check for iras < 4000
-
- RULE: R3
- IF: tage > 35 and #e14 < (tage-32) * 2000 * iraeligible
- THEN: wtclear
- ?" Generally, people over 35 years of age have reached a point"
- ?" where they can afford to put money into IRA's. Your balance"
- ?" sheet indicates that you have not been putting the maximum"
- ?" amount allowed into your IRA"
- CHANGES:nothing
- REASON: If you are under 35, you have an excuse. However if you
- are over 35, you really should have been stashing away
- those IRA funds for several years.
-
- RULE: R4
- IF: tmstat = "M"
- THEN: iranum = 2 ; iraeligible = Max(2000, #n5) + Max(2000, #n6)
- NEEDS: tmstat,#n5
- CHANGES: iranum
- REASON: If you are married, you are eligible for two IRA deductions.
-
- RULE: R5
- IF: tmstat ne "M"
- THEN: iranum = 1 ; iraeligible = Max(2000, #n5) + 250
- NEEDS: tmstat,#n5
- REASON: If you are not married, you are only eligible for one
- ira deduction and an additional $250 for the non-working
- spouse.
-
- RULE: R6
- IF: tmstat = "S"
- THEN: wtclear
- ?" You are currently not married. Getting married can save on your"
- ?" taxes. (Your mother asked me to mention this...)"
- CHANGES:nothing
- REASON: You can save taxes by getting married.
- COMMENT: Some people may not take this advice
-
- RULE: R7
- IF: housing > .28 * #o12
- THEN: wtclear
- i = (housing/#o12 )*100
- ?" Your mortgage payments are equal to ",i using "ddd",\
- " percent of your total"
- ?" monthly income. Experts generally agree that housing should not"
- ?" exceed 28 percent of your total income."
- CHANGES:nothing
- REASON: The standard rule of thumb says that your housing costs
- should not exceed 28% of you gross monthly income.
-
- RULE: R8
- IF: #e14 > 0
- THEN: wtclear
- ?" You currently indicate some IRA savings. Be sure that none of"
- ?" the IRA investments currently used have a tax exempt status."
- ?" The market values of these instruments are higher while they"
- ?" have no advantage for a tax exempt fund such as the IRA. They"
- ?" should not be part of an IRA portfolio."
- CHANGES:nothing
- REASON: The market tends to price these investments higher
- because of the tax deferred status which holds no
- appeal in an IRA.
-
- RULE: R10
- IF: #n25 > 0 or #n7 > 0
- THEN: wtclear
- ?" One of the best and safest investments available is to pay off"
- ?" existing debts upon which substantial interest is being paid."
- CHANGES:nothing
- REASON: One of the best investments you can make is to pay off
- existing debts on which you might be paying substantial
- interest, especially if you have money invested elsewhere
- at a lesser interest rate than you are paying.
-
- RULE: R11
- IF: #m19 > 0.10 * #o12
- THEN: wtclear
- i = (#m19/#o12)*100
- ?" Groceries for the normal family, should not exceed 10 percent of"
- ?" their income. This family spends approximately ",i using "ddd",\
- " percent."
- CHANGES:nothing
- REASON: If your grocery bill exceeds 10% of your family income,
- then you are spending an excessive portion of your income
- on groceries
-
- RULE: R13
- IF: #o45 < targsav
- THEN: wtclear
- lowsav = true;
- ?" Based on the financial statements on file, you should be saving"
- ?" ",targsav using "$dddddd"," per month, but your cash flow is "\
- ,#o45 using "$dddddd","."
- CHANGES: lowsav
- REASON: If your net savings are less than your target savings,
- then your savings are too low.
- COMMENT: There might also be variation based upon net income
-
- RULE: R14
- IF: housing + #n25 + #n41 > .33 * #o12
- THEN: wtclear
- totdebt = (housing + #n25 + #n41)/#o12 * 100
- ?" Your total debt and housing payments should not exceed 33 percent"
- ?" of your income. Your debt level is currently ",totdebt using "dd"\
- " percent."
- NEEDS: #n25, #n41, #o12, housing
- CHANGES: totdebt
- REASON: The standard rule of thumb says that your total debt
- and housing payments should not exceed 33% of you gross
- monthly income.
-
- RULE: R18
- IF: mtax ge 38
- THEN: wtclear
- i = mtax
- ?" You are in the ",i using "dd",\
- " percent tax bracket. Individuals in this"
- ?" bracket can realize quite good yields in after tax amounts by"
- ?" by investing tax exempt securities."
- CHANGES:nothing
- REASON: If you are in a high tax brackets, you can benefit
- from tax exempt securities.
-
-
- /********
- *
- * The Following Rules are used to establish the target savings level
- * for this investor.
- *
- ********/
-
- RULE: R30
- IF: tage < 22
- THEN: targsav = 0
- REASON: If you are under 22 years of age, you are probably
- using your money for college or just earning enough
- to get by. Your target savings therefore are 0.
-
- RULE: R31
- IF: tage >= 22 and tage < 30
- THEN: targsav = 0.05 * #o12
- REASON: If you are in your twenties and out of college you
- should be saving at least 5% of your family net income,
- otherwise your savings are too low.
-
- RULE: R32
- IF: tage >= 30 and tage < 40
- THEN: targsav = 0.06 * #o12
- REASON: If you are in your thirties, you should be saving at
- least 6% of your family net income, otherwise your
- savings are too low.
-
- RULE: R33
- IF: tage >= 40 and tage < 50
- THEN: targsav = 0.08 * #o12
- REASON: If you are in your fourties, you should be saving at least
- 8% of your family net income, otherwise your savings are
- too low.
-
- RULE: R34
- IF: tage >= 50 and tage < 65
- THEN: targsav = 0.09 * #o12
- REASON: If you are in your fifties, you should be saving at least
- 9% of your family net income, otherwise your savings are
- too low.
-
- RULE: R35
- IF: tage >= 65
- THEN: targsav = 0
- REASON: If you are retired, it is intended that you live off
- your savings, hence target savings are 0
-
-
- /********
- *
- * The Following Rules are used to establish this investors marginal
- * tax bracket
- *
- ********/
-
- RULE: R50
- IF: investor.fstat eq "J"
- THEN: perform margtax using "joint"
- CHANGES: mtax
-
- RULE: R51
- IF: investor.fstat eq "S"
- THEN: perform margtax using "single"
- CHANGES: mtax
-
- RULE: R52
- IF: investor.fstat eq "I"
- THEN: perform margtax using "indiv"
- CHANGES: mtax
-
- RULE: R53
- IF: investor.fstat eq "H"
- THEN: perform margtax using "headofh"
- CHANGES: mtax
-
-
- VAR: #e14
- LABEL: Amount currently invested in iras
-
- VAR: #n40
- LABEL: Current mortgage principle payments/period
-
- VAR: #n24
- LABEL: Current mortgage interest payments/period
-
- VAR: #n41
- LABEL: Current non-mortgage principle payments/period
-
- VAR: #n25
- LABEL: Current non-mortgage interest payments/period
-
- VAR: #n5
- LABEL: Wages for this individual
-
- VAR: #n6
- LABEL: Wages for individuals spouse
-
- VAR: #m19
- LABEL: Amount spent for groceries per period
-
- VAR: TAGE
- LABEL: This individuals age
-
- VAR: TMSTAT
- LABEL: Marital status
-
- VAR: HOUSING
- LABEL: Housing expense
- FIND: housing = #n24 + #n40
-
- VAR: COMPLT
- LABEL: Search is complete
-
- VAR: NOTHING
- LABEL: This rule changes nothing
-
- VAR: #E14
- VAR: #N40
- VAR: #N24
- VAR: #N41
- VAR: #N25
- VAR: #N5
- VAR: #N6
- VAR: #M19
- VAR: #E31
- VAR: #O12
- VAR: #N7
- VAR: #O45
-
- END:
-