This solution is better, but the user need to set one more hour than the hour he/she wants.