A mortgage calculator for repayment periods and initial deposit calculations
Project description
Mortgage Calculator
This package provides functions to calculate the repayment period and the initial deposit needed to repay a mortgage within a desired period.
Installation
pip install mortgage_calculations
Usage
from mortgage_calculations import calculate_repayment_period, calculate_initial_deposit
Example usage for repayment period calculation
down_payment = 2231000
annual_loan_rate = 0.05
loan_term_years = 30
initial_deposit = 1000000
deposit_annual_rate = 0.11```
repayment_period = calculate_repayment_period(property_cost, down_payment, annual_loan_rate, loan_term_years,
initial_deposit, deposit_annual_rate)
print(f"Mortgage repayment period: {repayment_period:.2f} years")
# Example usage for initial deposit calculation
desired_repayment_years = 10
initial_deposit_needed = calculate_initial_deposit(property_cost, down_payment, annual_loan_rate, loan_term_years,
deposit_annual_rate, desired_repayment_years)
print(f"Required deposit amount: {initial_deposit_needed:,.0f} RUB".replace(',', ' ') + f" to repay in {desired_repayment_years} years")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mortgage_calculations-0.1-py3-none-any.whl.
File metadata
- Download URL: mortgage_calculations-0.1-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3647ec0f04ba30ffc0fbbac91718c6a9f7ef241618aa4ab83dbd33826355a43
|
|
| MD5 |
4787b3dc1dc8526bef5146152ef4e741
|
|
| BLAKE2b-256 |
fee8a7c701c8f85cd5b773e1c42d3f2d87f93875f879afdd171af26ae327aa41
|