daytics is free. Help keep it that way.
Built by one person. No sign-ups, no paywalls, no newsletter spam. If a tool saved you time, a coffee goes a long way.
How to Use the Working Hours Calculator
- Add your first shift — the calculator starts with one entry pre-filled with 09:00 to 17:00. Adjust the start and end times to match your actual shift.
- Enter break duration — type the total break time in minutes for that shift. The calculator will subtract this from your worked hours automatically.
- Add more entries — click "Add Entry" to log additional shifts or days. There is no limit on the number of entries you can add in a single session.
- Click "Calculate Total" — the calculator will sum all your entries and display total hours worked in both hours-and-minutes format and decimal format.
- Review the breakdown — if you have multiple entries, a per-entry table appears showing start, end, break, and worked time for each shift.
- Copy the result — click "Copy Result" to copy the summary text to your clipboard for pasting into timesheets, invoices, or emails.
How It Works
The calculator converts each start and end time into total minutes past midnight. For a standard shift, it subtracts the start minutes from the end minutes to determine the raw duration. For overnight shifts where the end time is numerically earlier than the start time, the calculator adds 1440 minutes (24 hours) to the end time before subtracting, correctly accounting for the midnight crossover. Break minutes are then deducted from the raw duration to give the net worked time. All entries are summed into a grand total, which is presented in both hours-and-minutes format (e.g. 8h 30m) and decimal format (e.g. 8.50). The decimal format divides total minutes by 60 and rounds to two decimal places, which is the standard format used by most payroll and invoicing systems. Every calculation runs entirely in your browser using JavaScript, so no data is transmitted to any external server.
How does the working hours calculator work?
Add one or more time entries with a start time, end time, and optional break duration. The calculator converts each entry into minutes, subtracts breaks, and totals your hours across all entries. Results are shown in both hours-and-minutes and decimal formats, making it easy to transfer to timesheets or invoicing software.
Can I add multiple shifts?
Yes. Click "Add Entry" to add as many shifts or days as you need. Each entry has its own start time, end time, and break field. There is no upper limit on the number of entries, and the total updates as soon as you click "Calculate Total". A per-entry breakdown table appears when you have two or more entries.
Does it handle overnight shifts?
Yes. If the end time is earlier than the start time, the calculator assumes the shift crosses midnight and adds 24 hours to the end time before calculating. For example, a shift from 22:00 to 06:00 is correctly calculated as 8 hours. This makes it suitable for night-shift workers, security staff, and hospitality employees.
How are breaks handled?
Each entry has a break field where you enter total break time in minutes. The calculator subtracts this from the gross working time for that entry. If you have multiple breaks during a single shift, simply add them together and enter the total. For example, a 30-minute lunch and two 15-minute tea breaks would be entered as 60 minutes.
What is decimal time and why is it useful?
Decimal time expresses hours as a decimal number rather than hours and minutes. For example, 7 hours 45 minutes equals 7.75 in decimal. Most payroll software, invoicing tools, and accounting systems use decimal hours for calculations, so having this format available saves you the conversion step and reduces errors.
Is my data stored?
No. All calculations happen entirely in your browser using JavaScript. Your time entries are never sent to any server, stored in any database, or shared with any third party. If you close the browser tab, your entries are cleared. You can copy the result to your clipboard before leaving if you need to save it.
