Accepted its not consistent.

Now here is one more and probably better than that link. The idea is same but the algo is totally from my mind and may not work for all but brute force it as well and let me know the output

1 hr 35 Min
4 Hr 55 Min

1.35
3.55
-----
4.90
-----

+ .40 only if greater than equal to .60 till it gets less than .60

5.30 i.e 5 hours and 30 Mins

1hr 1min
2hr 2min

1.1
2.2
----
3.3
----

No need to add +.40

1hr 50mins
1hr 50mins
1hr 50mins

1.50
1.50
1.50
-----
4.50
-----
Now add 0.40

4.90

>= 0.60

Add 0.40

5.30

Brute force for other cases and see if it works for all. I have tested for quite a few