The time between 8:40 AM and 10 AM is
The time between now and 10 AM is 1 Hour 20 Minutes.
There are a total of 80 minutes from now until 10 AM today, or 1 Hour 20 Minutes.
If 10 AM today has already passed, it will calculate how many hours until 10 AM tomorrow.