Work out how much time has passed between two times. Enter a start time and an end time, and the calculator shows the duration in hours and minutes, the total minutes, and decimal hours for payroll or timesheets. It handles durations that cross midnight, so overnight shifts are calculated correctly.
Each time is converted to the number of minutes since midnight. The start is subtracted from the end to give the duration in minutes, which is then converted back to hours and minutes. If the end time is earlier than the start time, the duration is assumed to run past midnight, so 24 hours are added.
A shift runs from 9:00 am to 5:30 pm. That is 540 minutes since midnight for the start and 1,050 for the end. The difference is 510 minutes, which is 8 hours and 30 minutes, or 8.5 decimal hours.
An overnight shift from 10:00 pm to 6:00 am has an end time earlier than the start, so 24 hours are added. The result is 8 hours.
Payroll systems usually multiply hours by an hourly rate, and that is easier with decimal hours than with hours and minutes. For example, 8 hours and 30 minutes is 8.5 hours, so at $25 an hour that shift is worth $212.50.
Yes. If the end time is before the start time, the calculator adds 24 hours, so an overnight shift returns the correct duration.
Divide the minutes by 60. So 30 minutes is 0.5 hours, and 15 minutes is 0.25 hours.
This calculator is for anyone finding the duration between two times or dates, for scheduling, timesheets or planning.
If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.
Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.
All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.
Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.
Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.
Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.
All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.
About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use
Reviewed and maintained. Last reviewed 2026-06-14 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.
© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.