Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

calculate sick leave, paid holiday filemaker

Posted on 2007-04-02
2
Medium Priority
?
1,361 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Conversion Steps for merging and consolidating separate Filemaker files The following is a step-by-step guide for the process of consolidating two or more FileMaker files (version 7 and later) into a single file with multiple tables. Sometimes th…
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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

604 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