It generally takes a few weeks to read a 400-page coding book. This will depend on your personal reading speed. Nonetheless, your aim should be to acquire skills and knowledge, not to rush through the book.