Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Payroll Calculation Post Reply Post New Topic
Author Message
althomas
Newbie
Newbie


Joined: 09 Nov 2010
Online Status: Offline
Posts: 36
Quote althomas Replybullet Topic: Payroll Calculation
    Posted: 12 Nov 2010 at 8:43am
Hi,
 I was considering creating a report for calculating payroll hrs for both "regular" time and "Overtime". Can someone please help me out with the formula i would need to use. Basically how would i translate the following logic into a language crystal understands:
 
Calculate "Regular" time:
 
(For Weekdays only) : if Payroll hrs > 8 then 8, else Payroll hrs.  
 
 // in this way i will get 8 hrs for regular time if employee worked greater than 8 hrs and will need to calculate overtime in the next formula)//
 
Calculate "Overtime":
If weekend then the payroll hrs, else if payroll hrs > 8 then Payroll hrs - 8, else 0.
 
// in this way if it's a weekend then the entire payroll hrs will be overtime, if not a weekend and if payroll hrs are greater than 8 hrs then give me payroll hrs - 8 hrs, else just give me payroll hrs.//
 
 
Thank you all for your help in advance to help a noobie....By the way, if you find any error in the logic, please let me know or if there is a simplified way.
 
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.014 seconds.