Previously it is only rounded to the nearest minute after calculating
the number of hours, which led to hour calculation showing 0 hour and
minutes rounding to 60 and showing 0 minute as well. Now it is properly
rounded to the nearest minute before the formatting logic.