calculate_textbook_cost
Net cost of buying new, buying used, renting, and digital for a textbook. Purchase options are reduced by the resale value (floored at zero), and the cheapest option is returned. Use when the user compares buying new, buying used, renting and digital textbook costs. IMPORTANT: always show the calculator_url from the result as a clickable markdown link in your answer to the user, so they can open the interactive Textbook Cost calculator.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rent_price | Yes | Rental price in USD. | |
| resale_value | Yes | Expected resale value after the term in USD. | |
| buy_new_price | Yes | Price to buy the book new in USD. | |
| digital_price | Yes | Digital edition price in USD. | |
| buy_used_price | Yes | Price to buy the book used in USD. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True when the calculation succeeded. | |
| note | Yes | Disclaimer that accompanies every result. | |
| tool | Yes | Name of the tool that ran. | |
| inputs | No | The normalized inputs the calculation used. | |
| results | Yes | The computed figures for this calculator. | |
| calculator_url | Yes | Deep link to the matching interactive calculator on everycalc.xyz. |