Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculating times and taxes

Status
Not open for further replies.

nfpk

Programmer
Aug 15, 2002
74
0
0
SE
Hi!
I have a table with four fields:
startdate
starttime
enddate
endtime
Its a database for facturing the prices for personalhire.
There are different taxes on worktime between 0.00-6.00
6.00-18.00 and 18.00-24.00
I want the database to automatically calculate
how much to factorise.
What method is the best?
Is it possible to program this?
nfpk
 
tblPersonelHireDetails
PersonelID
StartDate
StartTime
EndTime
FactorID


tblTaxFactors
FactorID - Auto
Factor - double

You have to store the factors for each period - means more data entry, but easier than getting the computer to divide up the time.

Up to you of course, as otherwise you have to spilt the dates/times against factors.


Vince
 
Thanks Vince!

I think this is a good idea. I try it.
I thought of something similar.

nfpk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top