Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

time-value-of-money货币时间价值

Agent Skill

time-value-of-money 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,717

周安装

73

GitHub Stars

58

下载量

602
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:time-value-of-money(货币时间价值)
来源仓库:https://github.com/joellewis/finance_skills
仓库路径:skills/time-value-of-money
安装命令:
npx skills add https://github.com/joellewis/finance_skills --skill time-value-of-money
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/joellewis/finance_skills --skill time-value-of-money

简介

time-value-of-money 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 适用于金融分析、投资评估和财务规划等研究检索任务。
  • 通过安装命令 npx skills add https://github.com/joellewis/finance_skills --skill time-value-of-money 从 GitHub 仓库安装使用。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Time Value of Money

Purpose

This skill enables Claude to perform present value, future value, and discounted cash flow calculations across all standard compounding conventions. It covers annuities, perpetuities, amortization schedules, NPV, and IRR, providing the foundational building blocks for virtually all financial valuation and planning tasks.

Layer

0 — Mathematical Foundations

Direction

both (retrospective for valuing past cash flows, prospective for projecting future values)

When to Use

  • Discounting future cash flows
  • Building amortization tables
  • Comparing investments with different timing
  • Calculating loan payments
  • NPV or IRR analysis

Core Concepts

Future Value (FV)

The value of a present sum after earning interest for n periods at rate r per period.

$$FV = PV \times (1 + r)^n$$

Future value grows exponentially with time, which is the mathematical basis of compound interest.

Present Value (PV)

The current worth of a future sum, discounted back at rate r for n periods. This is the inverse of future value.

$$PV = \frac{FV}{(1 + r)^n}$$

Present value is the cornerstone of all valuation: a dollar today is worth more than a dollar tomorrow because of the opportunity cost of capital.

Compounding Conventions

Interest can compound at different frequencies. The nominal annual rate r_nom compounded m times per year produces different effective yields.

Discrete compounding (m times per year):

$$FV = PV \times \left(1 + \frac{r_{nom}}{m}\right)^{m \times t}$$

Continuous compounding:

$$FV = PV \times e^{r \times t}$$

Effective Annual Rate (EAR):

$$EAR = \left(1 + \frac{r_{nom}}{m}\right)^m - 1$$

For continuous compounding: EAR = e^(r_nom) - 1

Common frequencies:

Frequencym
Annual1
Semi-annual2
Quarterly4
Monthly12
Daily365
Continuousinfinity

Ordinary Annuity

A series of equal payments made at the end of each period for n periods.

Present Value:

$$PV = PMT \times \frac{1 - (1 + r)^{-n}}{r}$$

Future Value:

$$FV = PMT \times \frac{(1 + r)^n - 1}{r}$$

Annuity Due

A series of equal payments made at the beginning of each period. Each cash flow is one period closer than in an ordinary annuity, so values are scaled by (1 + r).

Present Value:

$$PV = PMT \times \frac{1 - (1 + r)^{-n}}{r} \times (1 + r)$$

Future Value:

$$FV = PMT \times \frac{(1 + r)^n - 1}{r} \times (1 + r)$$

Growing Annuity

A finite series of payments that grow at a constant rate g per period, where g!= r.

Present Value:

$$PV = \frac{PMT}{r - g} \times \left[1 - \left(\frac{1 + g}{1 + r}\right)^n\right]$$

This is widely used in equity valuation (e.g., multi-stage dividend discount models) and salary/pension projections.

Perpetuity

An infinite stream of equal payments.

$$PV = \frac{PMT}{r}$$

Growing Perpetuity

An infinite stream of payments growing at constant rate g, where g < r for convergence.

$$PV = \frac{PMT}{r - g}$$

This is the Gordon Growth Model when applied to dividends.

Net Present Value (NPV)

The sum of all discounted cash flows, including the initial investment. A positive NPV indicates value creation.

$$NPV = \sum_{t=0}^{T} \frac{CF_t}{(1 + r)^t}$$

Typically, CF_0 is a negative outflow (initial investment), and subsequent CF_t are inflows.

Internal Rate of Return (IRR)

The discount rate r that makes the NPV of all cash flows exactly zero.

$$0 = \sum_{t=0}^{T} \frac{CF_t}{(1 + r)^t}$$

IRR is solved numerically (Newton-Raphson or bisection) since there is no closed-form solution for general cash flow streams. For conventional cash flows (one sign change), a unique IRR exists.

Amortization

Each payment on an amortizing loan is split into an interest component and a principal component:

  • Interest portion: Interest_t = Balance_{t-1} * r
  • Principal portion: Principal_t = PMT - Interest_t
  • Remaining balance: Balance_t = Balance_{t-1} - Principal_t

Over time, the interest portion decreases and the principal portion increases.

Key Formulas

FormulaExpressionUse Case
Future ValueFV = PV * (1 + r)^nCompound a lump sum forward
Present ValuePV = FV / (1 + r)^nDiscount a future lump sum
EAR(1 + r_nom/m)^m - 1Compare rates across compounding frequencies
Continuous FVFV = PV * e^(r*t)Continuous compounding
Ordinary Annuity PVPMT * [1 - (1+r)^(-n)] / rLoan payments, lease valuation
Annuity Due PVPMT * [1 - (1+r)^(-n)] / r * (1+r)Rent, insurance (paid in advance)
Growing Annuity PVPMT/(r-g) * [1 - ((1+g)/(1+r))^n]Salary streams, growing dividends
Perpetuity PVPMT / rPreferred stock, consol bonds
Growing Perpetuity PVPMT / (r - g)Gordon Growth Model
NPVsum(CF_t / (1+r)^t)Project/investment evaluation
IRRsolve: sum(CF_t / (1+r)^t) = 0Return metric for uneven cash flows

Worked Examples

Example 1: Monthly Mortgage Payment

Given: A $300,000 mortgage at a 6.5% annual interest rate, fixed for 30 years, with monthly payments (ordinary annuity).

Calculate: The monthly payment amount.

Solution:

First, convert the annual rate to a monthly rate and years to months:

r_monthly = 0.065 / 12 = 0.00541667
n = 30 * 12 = 360 months

Using the ordinary annuity present value formula, solve for PMT:

PV = PMT * [1 - (1 + r)^(-n)] / r

300,000 = PMT * [1 - (1.00541667)^(-360)] / 0.00541667

Compute the annuity factor:

(1.00541667)^360 = 6.99179
(1.00541667)^(-360) = 0.143010
1 - 0.143010 = 0.856990
0.856990 / 0.00541667 = 158.2108

Solve for PMT:

PMT = 300,000 / 158.2108 = $1,896.20

The monthly mortgage payment is $1,896.20.

Over 30 years, total payments = 360 * $1,896.20 = $682,632, meaning total interest paid is $682,632 - $300,000 = $382,632.

Example 2: NPV of a Project with Uneven Cash Flows

Given: A project requires an initial investment of $50,000 and produces the following cash flows:

  • Year 1: $12,000
  • Year 2: $15,000
  • Year 3: $18,000
  • Year 4: $22,000
  • Year 5: $25,000

The required rate of return (discount rate) is 10%.

Calculate: The NPV and whether the project should be accepted.

Solution:

Discount each cash flow to present value:

PV(CF_0) = -50,000 / (1.10)^0 = -50,000.00
PV(CF_1) =  12,000 / (1.10)^1 =  10,909.09
PV(CF_2) =  15,000 / (1.10)^2 =  12,396.69
PV(CF_3) =  18,000 / (1.10)^3 =  13,524.21
PV(CF_4) =  22,000 / (1.10)^4 =  15,026.30
PV(CF_5) =  25,000 / (1.10)^5 =  15,523.03

Sum all present values:

NPV = -50,000.00 + 10,909.09 + 12,396.69 + 13,524.21 + 15,026.30 + 15,523.03
NPV = +$17,379.32

Since NPV is positive ($17,379.32), the project creates value and should be accepted. It earns more than the 10% required rate of return.

To find the IRR, we would solve for the rate where NPV = 0. Numerically, the IRR for this cash flow stream is approximately 21.0%, well above the 10% hurdle rate.

Common Pitfalls

  • Mismatching rate and period frequency: if payments are monthly, the discount rate must be a monthly rate. Divide the annual nominal rate by 12, do not take the 12th root of (1 + annual rate) unless converting from EAR.
  • Forgetting the sign convention for cash flows in IRR: outflows (investments) must be negative and inflows (returns) positive, or vice versa, but the convention must be consistent. Incorrect signs produce meaningless IRR results.
  • Confusing nominal vs effective rates: a 12% nominal rate compounded monthly produces an EAR of 12.68%, not 12%. Always clarify the compounding basis.
  • Off-by-one errors in annuity due vs ordinary annuity: an annuity due shifts all payments one period earlier. Forgetting the (1 + r) adjustment factor will undervalue annuity-due streams.
  • Multiple IRR solutions with non-conventional cash flows: when cash flows change sign more than once (e.g., initial outflow, inflows, then a large terminal outflow), Descartes' rule allows up to as many positive real IRR solutions as there are sign changes. In such cases, use NPV profiling or the Modified IRR (MIRR) instead.

Cross-References

  • return-calculations (core plugin, Layer 0): CAGR is a special case of compound growth; MWR/IRR uses the same NPV=0 framework
  • statistics-fundamentals (core plugin, Layer 0): Discount rate estimation often relies on regression (CAPM beta) and distributional assumptions

Reference Implementation

See scripts/time_value_of_money.py for computational helpers.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.2%
按下载量换算194

Claude

31.48%
按下载量换算190

Cursor

16.95%
按下载量换算102

Gemini CLI

9.71%
按下载量换算58

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/joellewis/finance_skills --skill time-value-of-money 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills