Simplify sleep time parsing