Solved

calculate sick leave, paid holiday filemaker

Posted on 2007-04-02
2
1,352 Views
Last Modified: 2008-02-01
my company gives paid holiday after 3 month start... earn 0.55day every month.
second year... 0.84day...
sick day 0.5 day... even next year..
Paid holiday max is 20 days and sick is 10 days..
i need to calculate these numbers... do you know how to do it?
0
Comment
Question by:Tony T
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 19

Accepted Solution

by:
billmercer earned 125 total points
ID: 18839767
Assuming your company uses the date of hire to determine when the paid holiday is updated, you could use a CASE() statement to calculate what the monthly accrual is for each person.
It might look like this:
Case(
   currentdate - startdate >= 365; .84;
   currentdate - startdate < 365 and currentdate - startdate > 90 ;    .55 ;
   currentdate - startdate < 30; 0;
  -1
)

Then, once per month you run a script which adds this amount to the person's vacation hour total, subtracts any time actually used, and uses the MIN() function to set the hours to the lower of the current total or the number 20, like this.

   CurrentHours = Min( CurrentHours; 20 )

Simply do the same thing for the sick time, using appropriate values there. The case statement will be simpler because you will only have to test for the one year.


0
 

Author Comment

by:Tony T
ID: 18841110
thank you.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Pop up windows can be a useful feature of any Filemaker database.  Though best used sparingly, they can be employed in a multitude of different ways, for example;  as a splash screen at login, during scripted processes to control user input, as pick…
Problem: You have a hosted FileMaker database and users are tired of having to use Open Remote or Open Recent to access the database. They say, "can't you just give us something to double-click on rather than have to go through those dialogs?" An…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question