Skip to main content

rate-calculator

rate-calculator is a small Python CLI for calculating an annualized rate from:

  • principal
  • interest earned
  • holding days

Formula:

annualized_rate(%) = (interest / principal) / (days / 365) * 100

Installation

pip install .

Usage

Run with arguments:

rate-calculator --principal 10000 --interest 150 --days 30

Example output:

Annualized rate: 18.25%

Print only the numeric result:

rate-calculator --principal 10000 --interest 150 --days 30 --raw

You can also run it interactively:

rate-calculator

Development

python -m rate_calculator --principal 10000 --interest 150 --days 30

Run tests:

pytest

Metadata

Release files for rate-calculator 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rate-calculator 0.1.1
File Size Uploaded Provenance Actions
rate_calculator-0.1.1.tar.gz 6.2 kB Without provenance Details for rate_calculator-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rate-calculator 0.1.1
File Interpreter ABI Platform Actions
rate_calculator-0.1.1-py3-none-any.whl Python 3 none any Details for rate_calculator-0.1.1-py3-none-any.whl

Total release size: 10.5 kB

Release files / rate_calculator-0.1.1.tar.gz

Download URL rate_calculator-0.1.1.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c1c4c0fa3946ec5f8f3486750e4d6944624535270b9c8198548680a7b2f2eb6f
BLAKE2b-256 checksum
How to use checksums
56b1f0d313bb3d376ba7f89d5b2a6166794f5f14144045ea47663839f277f37d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / rate_calculator-0.1.1-py3-none-any.whl

Download URL rate_calculator-0.1.1-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69d428762b8450d4a35bb79580d270e00bed0fd072da79a032e9fb27d56b5adf
BLAKE2b-256 checksum
How to use checksums
fd4e10ca2673f4e7fc5fc6ffa7d7a4526a71aeb2aab7f605c37700914957178c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Security for rate-calculator 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page