Kredit va omonatni hisoblash uchun kalkulyator
Project description
Kredit va Omonatni hisoblab beradigan kalkulyator
Kredit va omonat hisoblovchi oddiy Python kutubxonasi.
O'rnatish
pip install credit-deposit-calculator
1. Kreditni hisoblash
from calculator import Calculator
from decimal import Decimal
calculator = Calculator(
amount=Decimal("10000000"), # Kredit summasi
initial_payment_percentage=Decimal("20"), # Boshlang‘ich to‘lov (%)
annual_interest_rate=Decimal("25"), # Yillik foiz stavkasi
loan_term_months=12 # Kredit muddati (oy)
)
1.1 Differensial usuli
result = calculator.differential()
print(result)
1.2 Annuitet usuli
result = calculator.annuity()
print(result)
1.3 Natija
{
"options": {
"interest": "10000000", # Umumiy qiymat
"initial_payment": "2000000.00", # Boshlang'ich to'lov
"debt": "8000000.00", # Asosiy qarz
"loan": "1124243.56", # Kredit miqdori
"amount": "9124243.56", # Umumiy qarz
"monthly_avg": "760353.63" # Oylik o'rtacha to'lov
},
"payments": [
[
1, # Oy
"593686.96", # Foiz qismi
"166666.67", # Asosiy qarz
"760353.63", # Umumiy oylik to'lov
"7406313.04" # Qoldiq qarz
],
...
}
2. Omonatni hisoblash
from calculator import Deposit
from decimal import Decimal
deposit = Deposit(
principal=Decimal("5000000"), # Dastlabki pul miqdori
annual_rate=Decimal("22"), # Yillik foiz stavkasi
months=6, # Omonat muddati (oy)
monthly_addition=Decimal("500000") # Har oy qo‘shiladigan miqdor
)
result = deposit.deposit_calculator()
print(result)
2.1 Natija
{
"options": {
"interest": "2421068.50", # Umumiy foyda
"total_amount": "18421068.50" # Jami pul
},
"payments": [
{
"date": "24.04.2025", # Sana
"interest": "156164.38", # Oylik foyda
"total_amount": "10500000.00" # Umumiy qo'yilgan pul
},
...
]
}
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 Distribution
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 credit_deposit_calculator-0.1.2.tar.gz.
File metadata
- Download URL: credit_deposit_calculator-0.1.2.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34208c4eb91bcedd7757775933299185fcad1ae0123c49dee18060a8c04e13be
|
|
| MD5 |
4acf49882e290a84963f822a6845638f
|
|
| BLAKE2b-256 |
fbf7289de815655674e1b17819cff35d3b61401a48bba6be64ce7c78cc0adc6b
|
File details
Details for the file credit_deposit_calculator-0.1.2-py3-none-any.whl.
File metadata
- Download URL: credit_deposit_calculator-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c15e9e88f5cd88828498b20e04f780e34813f203e974bf02654bb0c41962cf2
|
|
| MD5 |
9c4b972f8bd2c0475ff3e325bbb4ea9f
|
|
| BLAKE2b-256 |
99a1e5148087f46f048f8a0df3d5654e9d9a7e42ddaa759ee5333520da5ce7eb
|