[thelist] Brain Teaser logic

Erik Mattheis gozz at gozz.com
Thu Oct 13 23:50:41 CDT 2005


It seems to me it's just a matter of:

1. looking at your data and separating that which can be user-entered 
and that which is dependent on what has been entered.
2. Creating conditional code to calculate the dependent data on that 
which has been entered.

pseudo-code:

if (TransferPromoteDate != null) {
   baseDate = TransferPromoteDate
   MidEvalPeriod = 90
}
else {
   baseDate = HireDate
   MidEvalPeriod = 45
}
MidEvalDate = baseDate + MidEvalPeriod

Was that helpful at all?


On Thursday, October 13, 2005, at 01:40 PM, Brian Delaney wrote:

> The catch -
> TransferPromoteDate - if a staff is transfered or promoted then their 
> probation starts over and the Mid, Final and Annual dates are 
> calculated from this date - always user entered.
>
> Another problem -  If you have been promoted or transfered and are a 
> clerical person then your mid = 45 days from transpromote date and 
> final = 90 days and if you are clinical then your mid = 90 days from 
> transpromote date and final 180 days.



--
- Erik Mattheis
612 377 2272
http://gozz.com/



More information about the thelist mailing list