convert a human readable duration to ms