fix days/hours code