# Date, Time calculation

#### guptamols

##### New Member
Hi, I am calculating the hours, min (calling it opportunity) by multiplying available slots of 2 hrs and no of slots as 20. This means 20 hrs available time.

Now, i have sum of time spent (start date + time & End date + time) by 4 people.

I have to calculate gap : [available time] minus [sum of time spent].

when i convert available time 2 x 20 into time format ([h]:mm:ss) it gives me 960:00:00 or if i do =TIME(40,0,0) and convert into [h]:mm:ss, it gives 16:00:00

### Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a \$25,000 loan, 5% annual interest, 60 month loan.

#### Worf

##### Well-known Member
o The time function does not work with values greater than one day: TIME(40,0,0)=TIME(16,0,0). The extra days are discarded.
o The “[h]:mm:ss” format will correctly display multiple days as hours.

#### guptamols

##### New Member
Thanks Worf, I understand your point however i am calculating the opportunity in hours through calculation and then want it to display approriately. I want a solution for this particular situation.

#### Worf

##### Well-known Member
Excel dates and times are just numbers and can be displayed in a variety of formats,not affecting the value itself.
What is the exact format you want after the calculations are done?

Last edited:

1,106,625
Messages
5,512,473
Members
408,899
Latest member
cve60069