Connect via MCP →

Enter Calculation

Formula

Advertisement

Results

Days and time of day
1,157 days and 09:46:40
days + hours:minutes:seconds
Days 1,157
Time of day (H:M:S) 09:46:40
Total seconds 100,000,000

What this calculator does

This tool converts a single duration value, expressed in hours, minutes, or seconds, into a normalized representation: a whole number of days plus the remaining time of day formatted as hours:minutes:seconds. It is a pure mathematical time-unit conversion, so it works identically everywhere with no region-specific rules.

How to use it

Enter your time value, choose the unit it is expressed in (Hours, Minutes, or Seconds), and the calculator returns the equivalent number of whole days followed by the leftover hours, minutes, and seconds. Seconds is the default unit.

The formula explained

First the value is normalized to total seconds by multiplying by a factor: 3600 for hours, 60 for minutes, or 1 for seconds. Then the days are taken with a floor division by 86400 (the number of seconds in a day). The remaining seconds are split into hours (floor by 3600), minutes (floor by 60), and the leftover seconds, which may be fractional if your input had a fractional part.

$$\begin{gathered} T = \text{Time value} \times \text{Unit factor} \\[1.5em] \text{where}\quad \left\{ \begin{aligned} \text{Days} &= \left\lfloor \dfrac{T}{86400} \right\rfloor \\ \text{Hours} &= \left\lfloor \dfrac{T \bmod 86400}{3600} \right\rfloor \\ \text{Minutes} &= \left\lfloor \dfrac{T \bmod 3600}{60} \right\rfloor \\ \text{Seconds} &= T \bmod 60 \end{aligned} \right. \end{gathered}$$
Diagram showing a total seconds value being divided into whole days plus remaining hours, minutes, and seconds
A total duration is split into whole days plus a remaining hours:minutes:seconds breakdown.

Worked example

For 100,000,000 seconds: total seconds = 100,000,000. Days = \(\left\lfloor 100000000 / 86400 \right\rfloor = 1157\). Remainder = \(100000000 - 1157 \times 86400 = 35{,}200 \text{ s}\). Hours = \(\left\lfloor 35200/3600 \right\rfloor = 9\), leaving 2,800 s. Minutes = \(\left\lfloor 2800/60 \right\rfloor = 46\), leaving 40 s. Result: 1157 days and 09:46:40.

Flat conversion ladder from a value times a factor to total seconds, then to days and hours minutes seconds
Worked example flow: value times factor gives total seconds, which normalizes into d / h:m:s.

FAQ

What if I enter minutes? The value is multiplied by 60 first, then broken into days and H:M:S. For example, 1225 minutes = 73,500 seconds = 0 days and 20:25:00.

Can I enter a fractional value? Yes. Any sub-second remainder is preserved in the seconds field rather than rounded away.

What does zero return? Zero returns 0 days and 00:00:00.

Last updated: