ShadeKit.ioLoading…

Time Calculator

Add or subtract a duration from a 24-hour clock time, or find the duration between two clocks with an explicit same-day or next-day choice.

Calculator arithmetic runs locally in your browser and does not require an API.

The interactive calculator loads here when JavaScript is enabled.

How to use Time Calculator

Enter HH:MM or HH:MM:SS. Shift mode accepts duration hours, minutes and seconds. Difference mode needs an explicit end-day selection; next day adds a full day regardless of the end clock.

Formula and method

Shift total = start seconds ± duration seconds. Day offset = floor(total/86,400), with the clock wrapped into that day. Difference = end seconds + chosen day offset − start seconds.

Understanding the results

A positive day offset is later than the starting day; a negative offset is earlier. A day is exactly 24 clock hours in this model. It has no calendar-date, time-zone or daylight-saving adjustment.

Worked example

Starting at 23:30 and adding two hours gives 01:30:00 with day offset +1. The elapsed duration is two hours even though the displayed clock is earlier.

This is clock arithmetic without calendar dates, time zones or daylight-saving rules.

Frequently asked questions

Does an earlier end clock automatically mean tomorrow?

Not in difference mode. Select Next day explicitly; an earlier same-day end is rejected.

What happens when subtracting across midnight?

The resulting clock wraps to the earlier day and shows a negative day offset.

Can this handle a daylight-saving change?

No. It assumes 24-hour days and does not use a time zone or transition calendar.