# Looking for a formula to find the difference between two hour:minute times from a timecard and convert the difference into decimal hours [closed]

Example: Clock in at 8:00 and out at 16:00 The difference would be 8.00 hours.

I want to create a spreadsheet where I simply enter the times from the time cards (24 hour format) and get decimal hours as the output. The company I work for calculates time-card times to two digits after the decimal. For example, 8.03 hours.