L
LB via AccessMonster.com
I design database to calculate working hours Total=(From-To)*(PayRate);Total
hours is wroking properly.
How can i change "PayAmount" formula to calculate Half hour correctly
1.This fomula calculate difference between start date and End Date
Total: Format([From]-1-[To],"Short Time")
2.this formula calculate Payment Amount
PayAmount: Round(CCur(Nz(DateDiff("n",[From],[To])*[PayRate]/60,0)),2)
8:00 * 6.25= 50 (Correct)
8:30 * 6.25=53.12(wrong)
8.30 * 625= 51.87 (Correct)
I ifound this formula from this forum but i still have same problem,when
total hours is 1.30 or 4.30 querie give wrong pay amount
Expr1: DateDiff("n",#00:00:00#,[Total])/60*6.25
ms Access 2003
hours is wroking properly.
How can i change "PayAmount" formula to calculate Half hour correctly
1.This fomula calculate difference between start date and End Date
Total: Format([From]-1-[To],"Short Time")
2.this formula calculate Payment Amount
PayAmount: Round(CCur(Nz(DateDiff("n",[From],[To])*[PayRate]/60,0)),2)
8:00 * 6.25= 50 (Correct)
8:30 * 6.25=53.12(wrong)
8.30 * 625= 51.87 (Correct)
I ifound this formula from this forum but i still have same problem,when
total hours is 1.30 or 4.30 querie give wrong pay amount
Expr1: DateDiff("n",#00:00:00#,[Total])/60*6.25
ms Access 2003