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 Distribution

mortgage_calculations-0.1.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

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

mortgage_calculations-0.1.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file mortgage_calculations-0.1.1.tar.gz.

File metadata

  • Download URL: mortgage_calculations-0.1.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for mortgage_calculations-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c0fae92256ea3126b223a1f2d9ec9fe54ac90e40aad75987363a9d8fc90e4fe7
MD5 2634fda9017bb093399cc518a84f342f
BLAKE2b-256 a6fe1c90bf76943b65b9f11d015f880687884682945eb9f2b4af67a045d619bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mortgage_calculations-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c761378958aabbf32b21541ec8e13316531ca8333bf463846195039e0f6fc6a5
MD5 1f3db8004578e7581537f9a255b430fd
BLAKE2b-256 fd5e0b25c843ef0314e31a2d345b662283f19c7df4239f1b0f8698f76f3f0415

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