Originally Posted by

**Croat** I guess the problem is when the time is in hh:mm:ss format?

If that's the problem note that a minute is 1/60 of an hour, so if you had 2h 34 min, you would add up 34 times the 1/60 part of an hour i.e.

$\displaystyle 2h 34 min=2h+\frac{34}{60}h=2,57h$

If you had seconds then you would do a similar thing as seconds are 1/60 of a minute, i.e. 1/3600 of an hour. e.g.

$\displaystyle 7h 35 min 3 sec=7h+\frac{35}{60}h+\frac{3}{3600}h=7,58h$

And of course, after you transform the hours into decimal form then you just calculate your usual percentage (y/x).