If you can't explain it simply, you don't understand it well enough. -Albert Einstein

 Home   News   Courses   Seminars   Templates   Help   TechHelp   Forums   Order   Contact   Logon More... What's New? Tips & Tricks Access Index Access Tips Excel Index Excel Tips Waiting List

 Home > TechHelp > Directory > Access > Time Spent
Calculate Total Time w DateDiff
By Richard Rost     2 months ago

Calculate Total Time Spent on a Job with DateDiff

S  M  L  XL  FS

In this Microsoft Access tutorial, I will teach you how to calculate the difference between two times. You can use this for employee time clocks, job costing, or just about any database where you need to figure out the difference between a start time and an end time in minutes and/or hours.

Adam from Fort Dodge, IA (a Developer Student) asks: I have a series of jobs that have a start date/time and an end date/time. I need to be able to calculate the total time worked on each job so I can bill my customers accordingly. Additionally, sometimes the job might start on a Thursday and end on a Monday. I need to exclude weekends, after hours (5pm to 8am the next day) and lunch breaks (noon to 1pm). How do I do this?

BONUS FOR CHANNEL MEMBERS:
Silver Members and up get access to an EXTENDED CUT of this video which covers additional examples. That video will show you how to add ranges of time to exclude from your calculations (such as when the business is closed, lunch hour, breaks, etc.) and exclude weekends.

MEMBERS ONLY VIDEO:
https://youtu.be/8xj0oxAbZpI

BECOME A MEMBER:

Basic Math Difference: https://youtu.be/Z9FwFqGaphk
Aggregate Queries: https://youtu.be/60o0hRUfBHs
DateDiff: https://youtu.be/sQaEN_wngSY
IIF Function: https://599cd.com/IIF
NetWorkDays: https://599cd.com/XACDT

FREE Access Level 1: https://599cd.com/Free1
FREE Customer Template Database: https://599cd.com/XCDT
\$1 Access Level 2: https://599cd.com/1Dollar
Learning Connection 50% OFF: https://599cd.com/Connection
Survey: https://599cd.com/survey
Richard's Blog: https://599cd.com/blog
Access Forum: https://599cd.com/AccessForum
https://en.wikipedia.org/wiki/Microsoft_Access
https://products.office.com/en-us/access
https://microsoft.com/en-us/microsoft-365/blog/access/
Email Me: amicron@gmail.com

KEYWORDS:
microsoft access, ms access, #msaccess, calculate total time, datediff, time clock, lunch breaks, exclude time ranges, exclude weekends, fractional hours, hours:minutes, employee time clocks, job costing time, elapsed time, access calculate time difference, datediff access age, project costs

QUESTIONS: