Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 187
Default Vacation Pay Calculation

Can anyone give a formula in a cell without many arguments in other columns?

I have a spreadsheet for staff provisions like vacation pay, severance pay
and air ticket which I have to update on monthly basis.

For vacation pay, the calculation is like this:

First 5 years. 14 days pay per year and afterwards 21 days per year. So the
calculation goes like this: (Here (in Kuwait) one month is considered as 26
days)

Basic pay/26*14/365*Number of days for the first five years or 1825 days

Later

Basic pay/26*21/365*Number of days after the first five years or 1825 days.

But if a person returns from vacation on completion of 4 years, and goes for
vacation on completion of 6 years, he will get 14 days pay for 5th year and
21 days pay for 6th year. I hope it is clear.

Now I am doing this by putting many arguments like <5 years, 5 years in
helper columns and hiding

I have Bade No., Name, Basic Pay, First Entry, Last Entry in columns: A to
E. I need the formula in Column F.

Can anyone help?

Thanks in advance.

Jaleel

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default Vacation Pay Calculation

Not sure whether or not I understood the question. Maybe this will
help:

=if((vacation.date-hire.date)<(365*tier2.year),tier1.vac,tier2.vac)

For example,
hire.date = 5/10/2000
tier2.year = 5
tier1.vac = 14
tier2.vac = 21

vacation.date = 5/9/2005 then returns: 14
vacation.date = 5/10/2005 then returns: 21
vacation.date = 5/11/2005 then returns: 21

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 187
Default Vacation Pay Calculation

Sloth,

Thanks for your efforts. Can you please explain what is meant by
tier2.year, tier1.vac and tier2.vac?

Regards,

Jaleel

"sloth" wrote:

Not sure whether or not I understood the question. Maybe this will
help:

=if((vacation.date-hire.date)<(365*tier2.year),tier1.vac,tier2.vac)

For example,
hire.date = 5/10/2000
tier2.year = 5
tier1.vac = 14
tier2.vac = 21

vacation.date = 5/9/2005 then returns: 14
vacation.date = 5/10/2005 then returns: 21
vacation.date = 5/11/2005 then returns: 21


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default Vacation Pay Calculation

Tier2.year is a name for the year that vacation days turns from 14 to
21, or year 5.

Tier1.vac is a name for # of vacation days if time with co. is less
than 5 years
Tier2.vac is a name for # of vacation days if time with co. is greater
than or equal to 5 years

Disregard the names if it helps and just use the values, i.e. 14, 21,
and 5.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 187
Default Vacation Pay Calculation

Thank you for your explanation. It will bring the result of ones
eligibility is either 14 or 21. That is not the main issue. Last entry is
also to be considered. Suppose, one fellow joined the company on 01/01/2000.
His last arrival from vacation is 01/01/2004. He is going for next vacation
on 01/01/2006. He is not fully eligible for 21 days pay. His first 5 years
will be completed on 01/01/2005. So for that period he will get only 14 days
pay. And for the rest of the period up to 01/01/2006 he is eligible for 21
days pay. This calculation is making the complication.

Jaleel


"sloth" wrote:

Tier2.year is a name for the year that vacation days turns from 14 to
21, or year 5.

Tier1.vac is a name for # of vacation days if time with co. is less
than 5 years
Tier2.vac is a name for # of vacation days if time with co. is greater
than or equal to 5 years

Disregard the names if it helps and just use the values, i.e. 14, 21,
and 5.




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default Vacation Pay Calculation

I'm still a little confused over what exactly you're trying to
calculate. How about something like this that calculates total
eligible vacation days given a starting date (hire date) and ending
date (current date, vacation date, etc.)? Note that this calc assume
vacation days are accrued every x days, where x = 365/# of eligible
vacation days per year, i.e. 365/21 = ~26; and there is also some
imprecision based on years with fewer than 365 days, i.e. leap years.

hire.date = 1/1/2000

=int(if((end.date-hire.date)/365<5, (end.date-hire.date)/365*14,
5*14+(((end.date-hire.date)/365)-5)*21))

end.date = 1/1/2004 = 56
end.date = 1/1/2005 = 70
end.date = 1/1/2006 = 91

end.date = 7/1/2006 = 101

If an employee is eligible for all their annual vacation days on their
hiring anniversary, you can change the equation as follows:

=if((end.date-hire.date)/365<5, int((end.date-hire.date)/365)*14,
5*14+int((((end.date-hire.date)/365)-5))*21)

Does this help?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open CSV causes calculation in manual calc mode [email protected] Excel Discussion (Misc queries) 0 July 25th 06 09:22 PM
Vacation Time calculation... HELP! brubru Excel Discussion (Misc queries) 1 July 22nd 06 10:10 PM
Vacation Accrual formula vane0326 Excel Worksheet Functions 1 May 19th 06 03:44 AM
Calculation Setting in Excel Stuart Bisset Excel Discussion (Misc queries) 0 June 17th 05 09:54 AM
How do I use a rounded calculation result in another calculation? vnsrod2000 Excel Worksheet Functions 1 January 26th 05 09:36 PM


All times are GMT +1. The time now is 06:11 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"