Fix of bug in Hours calculator