Skip to content
⏱️

Time Calculator

Calculate time difference between two times, add or subtract hours and minutes.

Share this calculator:WhatsAppTelegramX
Add this calculator to your site:
Written & reviewed by K L Hemanth KumarLast updated July 2026Formulas verified against RBI, the Income Tax Department, AMFI, and EPFO

About the Time Calculator

Time arithmetic seems simple until you cross midnight, mix AM/PM, or need to add 8 hours 45 minutes to 10:30 PM. The time calculator handles all of these cases instantly. It is most useful for: calculating shift hours for payroll, finding what time a meeting ends after adding duration, or figuring out if a flight arriving at midnight local time is the same calendar day you departed. Understanding time zones, shift overlaps, and duration calculations is fundamental to modern work and travel.

Time Difference Calculation

Difference = End Time (minutes from midnight) - Start Time (minutes from midnight)

If result is negative, add 1440 (24 x 60) to handle midnight crossing | To add/subtract: convert base time to minutes, add/subtract duration, convert back with modulo 1440

Worked Example

Night shift: Start 11:30 PM, End 7:30 AM next day

Start Time:23:30 (11:30 PM)
End Time:07:30 (7:30 AM)

Time difference: 8 hours 0 minutes | Crosses midnight: Yes | Total minutes: 480

Tips & Insights

  • 1

    The standard 8-hour workday (9 AM to 5 PM) is actually 8 hours - use this as your baseline for overtime calculations.

  • 2

    For payroll: always calculate in minutes (not decimal hours) to avoid rounding errors. 8h 45min = 525 minutes = 8.75 hours.

  • 3

    Night shift workers crossing midnight often get a shift allowance. Make sure to document both the start date and end date for payroll records.

  • 4

    IST (India Standard Time) is UTC+5:30 - note the unusual 30-minute offset. This means IST is neither a whole-hour nor half-hour offset from some time zones.

  • 5

    For break deductions: if a shift is 9:00-18:30 with a 1-hour lunch, billable hours = 8.5 hours. Always agree on how breaks are handled before calculating payroll.

Why this matters for you

Time calculation errors cost money. A 15-minute payroll error over 250 working days is 62.5 hours of pay - significant for both employer and employee. Shift workers, freelancers billing by the hour, and project managers tracking time-to-completion all need accurate time arithmetic. This calculator handles the edge cases (midnight crossings, AM/PM confusion) that trip up manual calculations.

Related Calculators

Frequently Asked Questions

How do I calculate hours worked between two times?+

Subtract the start time from the end time. If you work 9:00 AM to 5:30 PM, the difference is 8 hours 30 minutes. If the shift crosses midnight (e.g., 11 PM to 7 AM), add 24 hours to the end time before subtracting. Our calculator handles midnight crossings automatically.

How do I add hours and minutes to a time?+

Convert everything to minutes, add them up, then convert back. For 10:45 AM + 2 hours 30 minutes: 10x60+45 = 645 minutes + 150 minutes = 795 minutes = 13 hours 15 minutes = 1:15 PM. Our calculator does this automatically and handles AM/PM conversion.

What is the standard work day in hours?+

In India, the Factories Act 1948 mandates maximum 9 hours/day and 48 hours/week for factory workers. For IT and office workers, 8-9 hours/day (typically 9 AM to 6 PM with a 1-hour break) is standard. Common shift times include 9:00-17:00 (8 hrs), 9:00-17:30 (8.5 hrs), and 9:30-18:30 (9 hrs).

How many hours in a work week, month, and year?+

A standard 5-day, 8-hour work week = 40 hours/week = 160-176 hours/month (depending on the month) = ~2,080 hours/year. In India, with ~26 working days/month, it is 208 hours/month at 8 hrs/day. This is useful for calculating contract rates, overtime, and annual salaries from hourly rates.

How do I calculate overtime pay and total work hours for a month?+

Monthly work hours = (Working days in month x Daily hours) + Overtime hours. For 26 working days at 9 hours: 26 x 9 = 234 hours. Overtime in India under the Factories Act is paid at twice the ordinary rate for hours beyond 9 per day or 48 per week. Example: Regular 9 hrs at Rs. 150/hr, overtime 2 hrs at Rs. 300/hr. Daily pay: (9 x 150) + (2 x 300) = Rs. 1,350 + Rs. 600 = Rs. 1,950. Freelancers can use time calculators to track billable hours: log start and end times for each project, sum daily totals, multiply by hourly rate for the invoice.

How do I calculate payroll for employees with varying shift hours?+

Payroll calculation for hourly or shift-based employees uses the time difference method. For each shift: log start and end time, calculate hours worked (including handling midnight crossings). Sum daily hours across the pay period. Multiply by the applicable hourly rate. For Indian factories under the Factories Act, overtime is paid at double the ordinary rate for hours worked beyond 9 hours per day or 48 hours per week. Example: a worker earns Rs. 200 per hour. Regular 9 hours: Rs. 1,800. Two overtime hours at Rs. 400 each: Rs. 800. Daily total: Rs. 2,600. Monthly (26 working days, 2 overtime days): (24 days x Rs. 1,800) + (2 days x Rs. 2,600) = Rs. 43,200 + Rs. 5,200 = Rs. 48,400. Digital time tracking eliminates disputes - use mobile apps or web-based attendance systems that auto-calculate hours from punch-in and punch-out timestamps.

How do I convert time duration to decimal hours for billing?+

Decimal hours are the standard for billing and contract work. Divide the minutes by 60 and add to the whole hours. 1 hour 30 minutes = 1 + (30/60) = 1.5 hours. 2 hours 45 minutes = 2 + (45/60) = 2.75 hours. Common conversions: 15 minutes = 0.25 hours, 20 minutes = 0.333 hours, 30 minutes = 0.5 hours, 45 minutes = 0.75 hours. For billing: if your rate is Rs. 1,500 per hour and you worked 3 hours 40 minutes: 3 hours + (40/60) hours = 3.667 hours x Rs. 1,500 = Rs. 5,500 for the session. Monthly billing: sum all decimal hours from individual sessions for the month and multiply by rate. Indian freelancers billing international clients in USD should track time in decimal hours and convert the final invoice at the current exchange rate on the invoice date, clearly stating both USD and INR amounts.