Base: Fix maximum value check for duration box