?
Solved

calculate sick leave, paid holiday filemaker

Posted on 2007-04-02
2
Medium Priority
?
1,357 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:Hiroyuki Tamura
[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 500 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:Hiroyuki Tamura
ID: 18841110
thank you.
0

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

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…
Having just upgraded from Filemaker 11 to Filemaker 12 over the weekend, we thought we would add some tips for others making the same move.  In general, our installation went without incident. Please note that this is not a replacement for Chapter 5…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

770 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