# Converting time into Dollars

EE Professionals,

I have a timesheet that has a Time-In and a Time-Out.  I am trying to calculate the amount of time that transpires between the In and Out record (Column E) and then simply multiply it times a Rate per Hour to give me a result.  I need the formula for calculating Column E.

B.
Calculating-Time-to-Money.xlsm
###### Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

EngineerCommented:
Try this formula

=D3-C3+IF(D3<C3,1)
EngineerCommented:
Or simply

=D3-C3+(D3<C3)
Author Commented:
ssaqibh,

Thanks for the formula.  Unfortunately it doesn't work.  4pm to 1am isn't .38 hrs. (Column E).

Can you take a look at the spreadsheet?

Thank you,

B.
EngineerCommented:
Format the cell as [h]:mm
Author Commented:
Got it.  Now look at G.  What is the formula I use to calculate the Amount?

Right now I'm using   =(([@Hours]*Hourly_Rate)+[@Additional]), but that's not working.

Thank you!

B.
EngineerCommented:
=E3*\$B\$1*24+I3

Experts Exchange Solution brought to you by