Calculation Mode
Choose how to calculate time
Select Dates
Choose the start and end dates
How Many Days Until an Important Date?
Some of the most important questions in life are really just time math. How many days until my birthday? How long until a vacation? How many weeks until an event? If a project started on August 25 and ends on June 5, exactly how many days are in between? Counting on a calendar works, but it is tedious and easy to mess up, especially when the dates span across different months with different numbers of days.
Our time duration calculator takes any two dates and instantly tells you the exact difference in years, months, days, hours, and minutes. It also shows you the total in just days, just weeks, just hours, or just minutes, so you get the answer in whatever format is most useful. Whether you are counting down to something exciting or figuring out how long a project took, this calculator does the annoying calendar math for you.
Quick example: If a vacation starts on June 13 and you want to know how long you have to wait starting from April 1, the calculator tells you it is 2 months and 12 days, or exactly 73 days. That is 1,752 hours or 105,120 minutes. Knowing it is 73 days sounds a lot more manageable than trying to count them on a calendar by hand.
How Time Math Actually Works
Calculating the time between two dates is trickier than it sounds because our calendar is delightfully messy. Most months have 31 or 30 days, but February has only 28 (or 29 in a leap year). A year is usually 365 days long, but every four years it gets an extra day, making it 366. This irregularity is what makes counting days by hand so frustrating. You cannot just subtract one date from another the way you would with regular numbers because the months in between might have different lengths.
When the calculator finds the duration between, say, March 15 and July 28, it first counts the days left in March (16 days), adds all of April (30), all of May (31), all of June (30), and then the days into July (28), for a total of 135 days. It also breaks this down into a more human-friendly format of 4 months and 13 days. If you include specific times, like 9:00 AM to 3:30 PM, it handles the hours and minutes too, carefully borrowing from the next larger unit when needed, just like you borrow in regular subtraction.
Leap years add an extra wrinkle. A year is a leap year if it is divisible by 4, except for years divisible by 100, unless they are also divisible by 400. So 2024 was a leap year, 2100 will not be, but 2000 was. This rule was created to keep our calendar aligned with the Earth’s actual orbit around the Sun, which takes about 365.2425 days. Without leap years, our calendar would slowly drift, and eventually summer would happen in December in the Northern Hemisphere.
Counting Work Hours and Everyday Time
Time duration calculations are surprisingly useful for school. If your work shift starts at 8:15 AM and ends at 3:25 PM, how many hours are you actually at work? Subtracting the times gives you 7 hours and 10 minutes. If you add a 35-minute lunch break and a 15-minute break, you can calculate exactly how many minutes of actual productive time your day contains. Some people use this to figure out how many total hours of each activity they get per week or per semester.
Calculating time across midnight is a common challenge. If you start watching movies at 10:30 PM and finish your third movie at 2:15 AM, how long was your marathon? The trick is to add 24 hours to the end time when it crosses midnight. So 2:15 AM becomes 26:15 in 24-hour format, and 26:15 minus 22:30 equals 3 hours and 45 minutes. Our calculator handles this automatically, so you never have to think about the midnight crossover yourself.
Converting hours and minutes to decimal hours is another handy skill, especially for tracking work hours or volunteer hours. Three hours and 45 minutes is not 3.45 hours. To convert, you divide the minutes by 60: 45 divided by 60 equals 0.75, so the total is 3.75 decimal hours. This is the format most employers use on time cards. Common conversions to memorize: 15 minutes is 0.25 hours, 30 minutes is 0.50 hours, and 45 minutes is 0.75 hours.
Adding and Subtracting Time
Sometimes you do not want to find the difference between two dates. Instead, you want to add or subtract time from a starting date. “If my work project is due in 3 weeks and 2 days from today, what is the exact due date?” Or “My vacation starts on July 7. I need to register 2 months before that. What is the registration deadline?” These are subtraction and addition problems, and they are surprisingly easy to get wrong by hand because of those uneven month lengths again.
Adding time works by starting from your date and moving forward. Adding 3 weeks to June 10 gives June 31, but June only has 30 days, so the extra day rolls into July, making the answer July 1. Adding months is even trickier because “one month” means different things depending on where you start. One month after January 31 is February 28 (or 29 in a leap year), not February 31, because February does not have 31 days. The calculator handles all of these edge cases correctly, so you never have to worry about running off the edge of a month.
Subtracting time works the same way in reverse. If you need to take medication every 6 hours starting at 7:00 AM, your doses are at 7:00 AM, 1:00 PM, 7:00 PM, and 1:00 AM. The calculator can find any future dose time by adding the correct number of hours. If a recipe says to chill cookie dough for 2 hours and 15 minutes and you put it in the fridge at 4:40 PM, it is ready at 6:55 PM. Simple arithmetic, but easy to mess up in your head while you are also trying to preheat the oven and find the chocolate chips.
Fun Time Facts You Probably Did Not Know
Time zones are one of the weirdest parts of how humans measure time. The Earth is divided into 24 time zones, roughly one for each hour of the day. But the lines are not straight. They wiggle around country borders and even skip entire hours in some places. Nepal is 5 hours and 45 minutes ahead of UTC, the only country with a quarter-hour time zone. China, despite being enormous, uses just one time zone for the whole country, which means the sun does not rise until 10:00 AM in some western parts of China during winter.
The International Date Line in the Pacific Ocean is where each day officially begins and ends. If you cross it heading east, you go back one day. If you cross it heading west, you jump forward one day. This means you could leave Japan on Tuesday morning, fly east across the Pacific for 10 hours, and arrive in Hawaii on Monday afternoon, essentially arriving before you left. Samolia and Tokelau skipped an entire day in 2011 when they moved across the International Date Line to align with their trading partners, going directly from December 29 to December 31.
The concept of a “business day” is also important in time calculations. Business days are Monday through Friday, excluding weekends and holidays. Our calculator counts both total calendar days and business days between two dates. This matters a lot for things like shipping estimates, project deadlines, and figuring out how many work days are left in the year. If a package takes “5 to 7 business days” to arrive, and you order it on a Friday afternoon, it will not arrive until the following Friday at the earliest, because the weekend does not count. Knowing the difference between calendar days and business days can save you a lot of confusion and disappointment.
Frequently Asked Questions
Convert both times to 24-hour format. Subtract the earlier time from the later time, handling minute borrowing when necessary. For overnight spans, add 24 hours to the end time. 8:30 AM (08:30) to 5:15 PM (17:15): 17:15 - 08:30 = 8 hours 45 minutes. Our calculator handles all conversion and borrowing automatically.
Divide the minutes by 60 and add to the hours. 3 hours 45 minutes = 3 + (45/60) = 3.75 hours. Common conversions: 15 min = 0.25, 20 min = 0.33, 30 min = 0.50, 40 min = 0.67, 45 min = 0.75. Decimal hours are standard in payroll, invoicing, and time-tracking software.
Add 24 hours to the end time, then subtract normally. 10:30 PM to 6:15 AM: convert to 22:30 and 30:15 (6:15 + 24). 30:15 - 22:30 = 7 hours 45 minutes. Our calculator detects overnight spans automatically and calculates correctly.
Standard work day: 8 hours. Standard work week: 40 hours. Standard work year: 2,080 hours (40 x 52). After typical PTO and holidays: approximately 1,880-1,920 actual working hours. These benchmarks are used for salary-to-hourly conversions and annual leave calculations.
Add all minutes together, then divide by 60 to convert excess minutes to hours. Add the result to the sum of all hours. Example: 1:30 + 2:45 + 0:50 = minutes: 30+45+50 = 125 minutes = 2 hours 5 minutes. Hours: 1+2+0+2 = 5. Total: 5 hours 5 minutes.
Try More SupaCalc Tools
Free calculators for finance, health, AI costs, and more.
Browse All CalculatorsRelated Calculators
Date Difference
Calculate the exact days between two dates.
Countdown Calculator
Count down to any date or event.
Work Hours Calculator
Calculate work hours and earnings.
Time Zone Converter
Convert time between any two time zones worldwide. See live clocks, time differences, and find the best meeting times across time zones. Covers all major cities and regions.