Parse duration strings to ms