Skip to main content

Mortgage Calculator

Project description

Mortgage
====================

[![Travis][travis_logo]][travis_link] [![Codecov][codecov_logo]][codecov_link] [![Pyup][pyup_logo]][pyup_link]

[travis_logo]: https://img.shields.io/travis/austinmcconnell/mortgage.svg
[travis_link]: https://travis-ci.org/austinmcconnell/mortgage
[codecov_logo]: https://img.shields.io/codecov/c/github/austinmcconnell/mortgage.svg
[codecov_link]: https://codecov.io/gh/austinmcconnell/mortgage
[pyup_logo]: https://pyup.io/repos/github/austinmcconnell/mortgage/shield.svg
[pyup_link]: https://pyup.io/repos/github/austinmcconnell/mortgage/

Simple mortgage calculator tool


Installation
--------------------

To install mortgage, simply:

```commandline
pip install mortgage
```

How To Use
--------------------

This package is intended to help understand the true cost of a mortgage. It also can help you easily compare between different mortgages.

Begin by importing the loan class

```python
from mortgage import Loan

```

Create a simple mortgage

```python
loan = Loan(principal=200000, interest=.06, term=30, start_date=(2017,3,1))
```

View a summary of pertinent mortgage information by calling the summarize property.

```python
loan.summarize

>>> Original Balance: $ 200,000
>>> Interest Rate: 0.06 %
>>> APY: 6.17 %
>>> APR: 6.00 %
>>> Term: 30 years
>>> Monthly Payment: $ 1199.10

>>> Total principal payments: $ 200,000.00
>>> Total interest payments: $ 231,676.38
>>> Total payments: $ 431,676.38
>>> Interest to principal: 115.8 %
>>> Years to pay: 30.0
```


Run The Test Cases
--------------------
From the top level directory, run the following command:

```
pytest
```

Thank You
--------------------

Thanks for checking out the package! I hope you find it useful.

Feel free to open an issue with suggestions, imporovements, ideas, etc.

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-1.0.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

mortgage-1.0.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file mortgage-1.0.0.tar.gz.

File metadata

  • Download URL: mortgage-1.0.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mortgage-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1d41cd8978fa60ca156fa6f4a24e18255752b912d19846380b2b03bcfe3acb5a
MD5 a9b4b274bcf12c4db67f724b88e700bb
BLAKE2b-256 90effb2ae56fea66b6cccb705e4fab634c962a860df1bf362010ce0cb86302d5

See more details on using hashes here.

File details

Details for the file mortgage-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mortgage-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be480ef842c523622e922ed3c5a0d2a59d671c43f4e7c3c3d627c8933063bc67
MD5 524b87c674b3f2d072ba948b4ddd276b
BLAKE2b-256 4bce7b7cb4d0df70c0bb35feb155d3af1aa1e9649b2ec9d1dfc5fbe8a839b50d

See more details on using hashes here.

Supported by

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