subparse: Check the time is valid when calculating the duration