Time Value Calculator
enhancedtoolkits.calculators.time_value.TimeValueCalculatorTools ¶
Bases: BaseCalculatorTools
Calculator for time value of money calculations.
Source code in src/enhancedtoolkits/calculators/time_value.py
Functions¶
calculate_present_value ¶
Calculate the present value of a future sum of money.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
future_value | float | The amount of money in the future | required |
rate | float | Discount rate per period (as decimal, e.g., 0.05 for 5%) | required |
periods | int | Number of periods | required |
Returns:
Type | Description |
---|---|
str | JSON string containing present value calculation |
Source code in src/enhancedtoolkits/calculators/time_value.py
calculate_future_value ¶
Calculate the future value of a present sum of money.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
present_value | float | The current amount of money | required |
rate | float | Interest rate per period (as decimal) | required |
periods | int | Number of periods | required |
Returns:
Type | Description |
---|---|
str | JSON string containing future value calculation |
Source code in src/enhancedtoolkits/calculators/time_value.py
calculate_annuity_present_value ¶
Calculate the present value of an ordinary annuity.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
payment | float | Payment per period | required |
rate | float | Interest rate per period (as decimal) | required |
periods | int | Number of periods | required |
Returns:
Type | Description |
---|---|
str | JSON string containing annuity present value calculation |
Source code in src/enhancedtoolkits/calculators/time_value.py
calculate_annuity_future_value ¶
Calculate the future value of an ordinary annuity.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
payment | float | Payment per period | required |
rate | float | Interest rate per period (as decimal) | required |
periods | int | Number of periods | required |
Returns:
Type | Description |
---|---|
str | JSON string containing annuity future value calculation |
Source code in src/enhancedtoolkits/calculators/time_value.py
calculate_perpetuity_value ¶
Calculate the present value of a perpetuity.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
payment | float | Payment per period | required |
rate | float | Interest rate per period (as decimal) | required |
Returns:
Type | Description |
---|---|
str | JSON string containing perpetuity value calculation |
Source code in src/enhancedtoolkits/calculators/time_value.py
get_llm_usage_instructions staticmethod
¶
Returns detailed instructions for LLMs on how to use time value of money calculations.