Question: how many hours is 9am to 5pm?
Answer: total = 8 hours . 5pm can be written as 17:00, and 9am as 9:00. 17:00–9:00=8:00, which can be written as 8am.