My company prorates annual bonus payments by salary. Meaning if an employee’s salary changed at any point during the fiscal year, their annual bonus payment would be based on their prior salary, up until the point in time their salary changed, at which point the basis for their annual bonus calculation would be the new salary. Example:
Annual Bonus Plan participation period = 10/1/2023 – 9/30/2024
Salary on 10/1/2023; $75,000; Salary changed to $90,000 on 4/1/2024
Bonus 10/1/2023 – 3/31/2024 based on prior salary of $75,000
Bonus 4/1/2024 – 9/30/2024 based on new salary of $90,000
I would like to create an automated way in Access to audit for this, comparing the existing Annual Bonus table with the Salary Changes table (updated/uploaded periodically to capture new entries), which returns every salary change an employee has. Sample dB attached.
Using these examples, the query would return Jenny Kent as an employee who needs a prorated row, with a start date of 6/10/2024 and end date of 9/30/2024, since that is the date her salary changed from 75k to 92k, while at the same time returning a row showing that the time period 10/1/2023 – 6/9/2024 should be based on the prior salary of 75k. Query returns:
10/1/2023 – 6/9/2024 - $75,000
6/10/2024 – 9/30/2024 - $92,000
Additionally, the query would also return Phillip Smith as an employee who needs a prorated row with a start date of 5/27/2024 and end date of 9/30/2024, since that is the date his salary changed from 45k to 53k, while at the same time returning a row showing that the time period 10/1/2023 – 5/26/2024 should be based on the prior salary of 45k. Query returns:
10/1/2023 – 5/26/2024 - $45,000
5/27/2024 – 9/30/2024 - $53,000
Lastly, the query would ignore John Meyers and Rachel Rogers because their salary changes and commensurate proration has already been addressed and accounted for in a previous audit (and is therefore already reflected in the Annual Bonus table).
Thank you so much for any assistance in advance.