Skip to main content

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


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

If you're not sure about the file name format, learn more about wheel file names.

mortgage_calculations-0.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file mortgage_calculations-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mortgage_calculations-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a3647ec0f04ba30ffc0fbbac91718c6a9f7ef241618aa4ab83dbd33826355a43
MD5 4787b3dc1dc8526bef5146152ef4e741
BLAKE2b-256 fee8a7c701c8f85cd5b773e1c42d3f2d87f93875f879afdd171af26ae327aa41

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page