Current location: Hot Scripts Forums » Programming Languages » PHP » leave calculation


leave calculation

Reply
  #1 (permalink)  
Old 08-03-03, 10:18 PM
vioss vioss is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
leave calculation

hi,

for example, for the first 2 years, he does not has bonus leave, on the third year onwards, he has 1 day increase.

by default, he has 18 days leave, on the third year, he can carry forward the 10 days from the previous year, now, he has 28 days leave plus 1 day bonus leave = 29 days.

same with the fourth year, he can carry forward 10 days, so, he has 39 days leave plus 1 day bonus leave = 40 days.

if he apply 2 days leave in the first 2 years, the balance is 16 days. on the third year, he only can carry forward 10 days only, not 16 days.

if he apply 12 days leave in the first 2 years, the balance is 6 days. on the third year, he only can carry forward 6 days only, not 10 days.

this is the problem that u don't know how to fix, can you teach me?

thank you.....
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
carry forward superman PHP 11 08-12-03 02:50 AM
the carry-forward leave calculation? vioss PHP 0 07-31-03 11:41 AM
leave calculation superman PHP 0 07-26-03 11:35 AM


All times are GMT -5. The time now is 04:26 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.