Fixed convertIntoHours method