# Time Conversions Without a Calculator — Cost & Capacity Estimation

Source: https://www.skillbyai.com/en/capacity-estimation/ce-time-conversions

> Convert per-day and per-month counts into per-second rates using 86,400 and about 2.5 million.

## Two numbers to memorise

Most traffic arrives as 'per day' or 'per month' and must become 'per second'. A day has **86,400 seconds**; round it to **10^5** for mental maths, which makes 1 million requests per day about 10 per second (exactly 11.6). A 30-day month has **about 2.6 million seconds**, commonly rounded to **2.5 x 10^6**. A year has about **3.15 x 10^7** seconds; a popular mnemonic is that pi x 10^7 seconds is roughly one year. Rounding 86,400 up to 100,000 underestimates the rate by about 14%, which is acceptable because you will apply a much larger peak factor later. The habit to build is converting immediately: whenever you hear '200 million per day', think '2 x 10^8 / 10^5 = 2,000 per second on average'.

## Checking the shortcuts

Compare exact conversions with the rounded mental versions.

```python
per_day = 200_000_000
exact = per_day / 86_400
mental = per_day / 1e5
print(f"exact : {exact:,.0f} /s")
print(f"mental: {mental:,.0f} /s")
print(f"seconds per 30-day month: {30 * 86_400:,}")
print(f"seconds per year: {365 * 86_400:.3e}")
```

Output:

```
exact : 2,315 /s
mental: 2,000 /s
seconds per 30-day month: 2,592,000
seconds per year: 3.154e+07
```

## Monthly salary to daily wage

If someone earns 30,000 rupees a month you instantly think 'about 1,000 a day'. Converting requests per day to per second is the same reflex with a different divisor: about one hundred thousand.

**Quiz:** A service receives 50 million requests per day. What is the average rate, roughly?

- [ ] About 50 per second
- [ ] About 5,000 per second
- [ ] About 50,000 per second
- [x] About 600 per second

*Answer:* About 600 per second. 50 x 10^6 / 86,400 is about 580 per second; the mental shortcut 5 x 10^7 / 10^5 = 500 is close enough.
