Hi all.
I’m looking for a solution, if one exists, to a problem that I need to solve.
The basic premise behind what I am trying to do is the evaluation of how much money has been paid out under a record number.
This record will pay an amount out from a start date in the past to the current date or a stop date in the past.
I need to evaluate how much has been paid at any given time in the past. This date may change.
The following data is stored:
Current payment rate (stored in amount per annum)
Current frequency of payment.
Start date of record.
The main problem I have encountered is that the data over the course of the contract can and will change. Both frequency and payment amount.
I have constructed databases that contain the values of frequency and amounts over the course of the contracts life.
e.g.
Value per annum data
Record Effective_from Until Value
101 01/01/95 31/12/98 100000.00
101 01/01/99 31/10/02 90000.00
101 01/11/02 29/04/05 0.00
102 01/10/97 29/04/05 50000.00
Frequency Data
Record Effective_from Until Value
101 01/01/95 31/12/96 Monthly
101 01/01/97 29/04/05 Half Year
102 01/10/97 29/04/05 Monthly
This is pretty much where I get stuck and I would appreciate if anyone could offer me some help on where to go now.
I would like to be able to build code that ‘looks up’ information from these tables and manages to calculate what the total payment to the contract is.
This is where my limited experience grounds me. Any help and suggestions will be more than welcome.
Thanks for reading.
I’m looking for a solution, if one exists, to a problem that I need to solve.
The basic premise behind what I am trying to do is the evaluation of how much money has been paid out under a record number.
This record will pay an amount out from a start date in the past to the current date or a stop date in the past.
I need to evaluate how much has been paid at any given time in the past. This date may change.
The following data is stored:
Current payment rate (stored in amount per annum)
Current frequency of payment.
Start date of record.
The main problem I have encountered is that the data over the course of the contract can and will change. Both frequency and payment amount.
I have constructed databases that contain the values of frequency and amounts over the course of the contracts life.
e.g.
Value per annum data
Record Effective_from Until Value
101 01/01/95 31/12/98 100000.00
101 01/01/99 31/10/02 90000.00
101 01/11/02 29/04/05 0.00
102 01/10/97 29/04/05 50000.00
Frequency Data
Record Effective_from Until Value
101 01/01/95 31/12/96 Monthly
101 01/01/97 29/04/05 Half Year
102 01/10/97 29/04/05 Monthly
This is pretty much where I get stuck and I would appreciate if anyone could offer me some help on where to go now.
I would like to be able to build code that ‘looks up’ information from these tables and manages to calculate what the total payment to the contract is.
This is where my limited experience grounds me. Any help and suggestions will be more than welcome.
Thanks for reading.