Refactored duration parsing to standardize to seconds