Formatting and edge cases for hour logging