Base: Support specific granularity for duration box input

Limit interval duration to minutes and hours (does not support second
granularity)