CALCULATE

CALCULATE

**Time Duration Calculator** can calculate the duration between two times. It has two sub-calculators:

The first sub-calculator is called the Elapsed Time Duration Calculator. It contains three elapsed time inputs: Start time, End Time, and Duration.

Every input has multiple time units and the conversion between the units is done automatically.

The second sub-calculator is the Clock Time Duration Calculator which supports both 12-hour and 24-hour clock formats. Under it, you’ll find the Start Clock Time and the End Clock Time.

**How to Use the Elapsed Time Duration Calculator**

This calculator has two functionalities. First, it can calculate the duration based on the data you enter in the Start Time and End Time boxes. Plus, it can also calculate the end time based on what you enter in the Start Time and Duration slots.

You can start by entering the data for the End time or the Duration. After that, log the data for the start time. Remember that for this calculator, the start time should be less than the end time.

The default unit is "Hours/Minutes/Seconds". You can enter the time and then switch between multiple units and the time will be automatically converted by this calculator.

The units provided by this calculator are:

- Seconds
- Minutes
- Hours
- Minutes/Seconds
- Hours/Minutes
- Hours/Minutes/Seconds
**(default)**

This calculator can help you find the duration between two clock times of a single day or two consecutive days.

The first step is to choose the clock format. You can pick either 24 hours or 12 hours.

The second step is to enter the start time and the end time. The time inputs for this calculator are Hours, Minutes, and Seconds.

If the clock format is 24 hours, your start time and end time should be between 0 and 23. In case the clock format is 12 hours, your input needs to be between 0 and 12. Then, make sure to choose between AM or PM. For minutes and seconds, your inputs should be between 0 and 59.

After completing the data required, the Time Duration will be automatically calculated. You’ll see the result in the Duration input. It supports multiple units, similar to the Elapsed Time Duration Calculator.

**How To Calculate Duration With Elapsed Times**

The principle is just to subtract the end time from the start time. However, since time units can make it a little bit complex, you’ll need to convert the Start Time and End Time to seconds. Then, calculate the duration in seconds. The last step will be to convert the duration to the required unit.

Now, let’s take this example and calculate the duration:

Start Time Unit: **Minutes/Secondes**

Start time: **200 Minutes and 30 Seconds**

Start Time Unit: **Hours/Minutes/Secondes**

Start time: **5 Hours, 10 Minutes and 30 Seconds**

Duration Unit: **Minutes**

- The first step is to Convert start time to seconds:

**Start time = 200 * 60 + 30 = 12000 + 30 = 12030 Seconds** - The second step is to Convert end time to seconds:

**End time = 5 * 3600 + 10 * 60 + 30 = 18000 + 600 + 30 = 18630 Seconds** - The third step is to calculate the duration in seconds:

**Duration = 18630 - 12030 = 6600 Seconds** - The last step is to convert the duration to Minutes:

**Duration = 6600 / 60 = 110 Minutes**

To calculate duration manually with Clock Times, you can use the same principle as for elapsed times.

You subtract the end time from the start time. To do that, you should convert both times to seconds.

Let's suppose that

In the following, we will present the formulas on how to calculate duration:

- If ET_SEC - ST_SEC < 0

Duration = (24*3600 - ST_SEC) + ET_SEC - If ET_SEC - ST_SEC >= 0

Duration = ET_SEC - ST_SEC

- If ST_FORMAT and ET_FORMAT are equals (AM AM or PM PM)
- If ET_SEC - ST_SEC < 0

Duration = (24*3600 - ST_SEC) + ET_SEC - If ET_SEC - ST_SEC >= 0

Duration = ET_SEC - ST_SEC

- If ET_SEC - ST_SEC < 0
- If ST_FORMAT is "PM" and ET_FORMAT is "AM"
- If (ET_SEC - (ST_SEC + 12*3600) ) < 0

Duration = (24*3600 - (ST_SEC + 12*3600) ) + ET_SEC - If (ET_SEC - (ST_SEC + 12*3600) ) >= 0

Duration = ET_SEC - (ST_SEC + 12*3600)

- If (ET_SEC - (ST_SEC + 12*3600) ) < 0
- If ST_FORMAT is "AM" and ET_FORMAT is "PM"
- If ((ET_SEC + 12*3600) - ST_SEC ) < 0

Duration = ((ET_SEC + 12*3600) - ST_SEC ) + ET_SEC - If ((ET_SEC + 12*3600) - ST_SEC ) >= 0

Duration = (ET_SEC + 12*3600) - ST_SEC

- If ((ET_SEC + 12*3600) - ST_SEC ) < 0

Now, let's take this example and calculate the duration:

Clock Format:

Start time:

End Time:

Duration Unit:

Result:

ST_SEC = 4 * 3600 + 50 * 60 = 17400 seconds

ET_SEC = 2 * 3600 + 30 * 60 = 9000 seconds

Based on formulas above:

So,

Now, we will convert Duration into Hours/Minutes/Seconds format

Hours = 34800 / 3600 = 9

Minutes = (34800 % 3600) / 60 = 40

Seconds = (34800 % 3600) % 60 = 0