# Yield Calc

> Project future returns based on APY and compounding.

- Skill: `xspoonai/yield-calc` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add xspoonai/yield-calc`
- Raw SKILL.md: https://api.skillmd.com/api/skills/xspoonai/yield-calc/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: XSpoonAi (https://skillmd.com/u/xspoonai)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/xspoonai/yield-calc

---


# Yield Calculator

A forecasting skill for DeFi agents. It converts APR to APY, handles compounding frequency, and projects the future value of a crypto investment.

## Quick Start

```python
# Project returns for $1000 at 50% APR for 1 year
projection = await agent.run_tool(
    "calc_yield",
    principal=1000,
    apr_percent=50,
    days=365
)
print(projection)
```

## Scripts

| Script | Purpose |
|--------|---------|
| [yield_projector.py](scripts/yield_projector.py) | Investment forecasting engine |

## Best Practices

1. Use to compare DeFi pools (e.g., "Pool A vs Pool B").
2. Remember that DeFi rates fluctuate; this provides a theoretical projection.

