# Calculators

> Show a tip or loan calculator card that does the math. Use for tipping, splitting a bill, mortgages, car loans, monthly payments and loan interest.

- Skill: `amd/calculators` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx get-skill add amd/calculators`
- Raw SKILL.md: https://api.skillmd.com/api/skills/amd/calculators/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: MIT
- Author: amd (https://skillmd.com/u/amd)
- Updated: 2026-11-16
- Page: https://skillmd.com/skills/amd/calculators

---


# Calculators

Draws a `calculator` card in the Agent UI and the TUI. The card does the
arithmetic and recomputes as the user changes the numbers, so a wrong sum from
the model never reaches the answer.

## Procedure

1. **Pick the calculator.**
   - Tipping or splitting a bill → `calculators/show_tip_calculator` (bill,
     tip percent, people).
   - A mortgage, car loan, monthly payment or loan interest →
     `calculators/show_loan_calculator` (price, yearly rate in percent, years,
     down payment).
2. **Pass the numbers the user gave, as they gave them.** Send the full price as
   `price` and the part paid up front as `down_payment`; never subtract one
   from the other. Use defaults for what the user left out (18% tip, one
   person, no down payment).
3. **Set `currency` from the money in this request**: "$" is `USD`, "€" is
   `EUR`, "£" is `GBP`.
4. **If the call returns `"ok": false`, fix what its `error` names and call the
   same tool again.**
5. **After the card is shown, reply with one or two short sentences.** Do not do
   the math in text or state the results: the card shows them.

