Strict hours and days format.

Avoid 29h, 00d or 36d for example.
Add tests for invalid days and hours.