CalculatorSignAll calculators

Hours and Minutes Shared by Two Time Blocks Calculator

Calculate the overlap and total distinct time covered by two same-day clock intervals.

Hours and Minutes Shared by Two Time Blocks Calculator

Result
—

Use this calculator on your site

Paste the full code, including the CalculatorSign credit, into a Custom HTML block on your site.

Preview widget

Find how much time two same-day blocks have in common. Enter the starting and ending clock time for each block. The calculator reports the overlap in hours and minutes, then lists the time covered by at least one block and the duration of each block on its own.

Use this for two intervals on one day and the same clock basis. Each ending time must fall on or after its own starting time. To compare a schedule that crosses midnight, split it into daily pieces or use a tool with complete timestamps. The form here treats 09:00 and 10:00 as clock times on one shared date.

Compare the latest start and earliest end

Shared time can begin only after both blocks have started. Take the later of their two start times. It can continue only until either block ends, so take the earlier ending time. If that end is later than the shared start, subtract the two to get the overlap. If they are equal or the end comes first, the overlap is zero.

Convert each clock time to minutes from midnight before subtracting. An hour contributes 60 minutes. This avoids borrowing by hand across an hour boundary. After finding the duration in minutes, divide by 60 for whole hours and use the remainder for the minute portion.

The total covered time answers a separate question. Add both full durations and subtract the overlap one time. Each shared minute is included in both individual durations, so removing it once leaves it counted once. A gap between two separate blocks is outside both durations and is excluded from total covered time.

Worked example with two partially overlapping blocks

Enter a first block from 09:15 to 12:40 and a second from 11:05 to 14:20. The later start is 11:05 and the earlier end is 12:40. Between those times are one hour and 35 minutes. That is the overlap shown in the headline.

The first block lasts three hours and 25 minutes. The second lasts three hours and 15 minutes. Adding them gives six hours and 40 minutes, but the overlap appears twice in that total. Subtract one hour and 35 minutes to get five hours and five minutes covered by at least one block.

As an independent check, these two blocks form continuous coverage from 09:15 to 14:20 because they overlap. That span is also five hours and five minutes. When the blocks do not overlap, subtracting their outer endpoints can overcount the gap, so it is better to add the individual durations.

Interpret the result for each type of schedule

If two rooms are booked at the same time, the overlap shows when both are active. The covered time gives the amount of time at least one is in use. If you are counting staffing hours for two workers, the combined labor hours could instead be the sum of both durations, since each person works during the shared period.

When one block sits entirely inside the other, the smaller block is their overlap and the larger block is the total covered interval. For example, 10:00 to 11:00 inside 09:00 to 13:00 yields one hour in common and four total hours covered. The same rule works when starts or ending times are equal.

A schedule can include an internal break during a listed block. The form treats each time between start and finish as covered. Split the active times into shorter segments when a break should be excluded. In a schedule with more than two intervals, make a timeline and count overlapping portions carefully so you do not remove a minute more than once.

The calculation is precise to the minute values you entered. If records include seconds or clock changes, normalize them to one time basis and decide how to handle that precision before entering the fields. Saving the source times with the output will make later comparisons easier to check.

Frequently asked questions

Does a block ending when the next begins count as overlap?

Their meeting point represents an instant with no positive duration. A first block ending at 11:00 and a second beginning at 11:00 touch at the boundary and have zero minutes of overlap.

Do I have to enter the earlier block first?

Either order works. Each block's own starting and ending time must be in chronological order. The calculator chooses the later start and the earlier end across both blocks.

Does a gap count as part of the covered time?

A gap is outside both blocks, so it is omitted. The detail adds active durations and removes any duplicated coverage.

Can an interval have the same start and end?

That defines a block of zero duration in this tool. It adds no covered minutes or overlap.