how much time to write a book