Hours:Minutes:Seconds reported by consultant at $/hour calculated to the hr/min/sec used
I have a consultant who bills at the hourly rate down to the Hour:Min:Seconds time used.
They provide us with Time in this format 1:13:51. How do I take that time and multiply it by the rate to give correct cost per time in USD?
Best Answer
-
Depending on where you are pulling the number or hours and hourly rate from, this will need to be adjusted somewhat to fit your use case.
=Rate@row * (IF(LEN(Hours@row) > 5,(VALUE(Left(Hours@row, LEN(Hours@row) - 6))), 0) + (VALUE(MID(Hours@row, LEN(Hours@row) - 4, 2)) / 60) + (VALUE(RIGHT(Hours@row, 2)) / 3600))
Edit: Adding screenshot to show how I set this up.
Answers
-
Depending on where you are pulling the number or hours and hourly rate from, this will need to be adjusted somewhat to fit your use case.
=Rate@row * (IF(LEN(Hours@row) > 5,(VALUE(Left(Hours@row, LEN(Hours@row) - 6))), 0) + (VALUE(MID(Hours@row, LEN(Hours@row) - 4, 2)) / 60) + (VALUE(RIGHT(Hours@row, 2)) / 3600))
Edit: Adding screenshot to show how I set this up.
-
PERFECT! Thank you
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 437 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!