Fix book calculation