Skip to main content

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)
)

Differensial usuli

result = calculator.differential()
print(result)

Annuitet usuli

result = calculator.annuity()
print(result)

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",  # Umumit 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)

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

credit_deposit_calculator-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

credit_deposit_calculator-0.1.0-py2.py3-none-any.whl (4.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file credit_deposit_calculator-0.1.0.tar.gz.

File metadata

File hashes

Hashes for credit_deposit_calculator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 86453d6246c8b5ac90d5342dd315ecd7eb8879e0d69731f1a58b5741153e0886
MD5 48891de623a17aa9cb6aa6f681713f4c
BLAKE2b-256 51df16b896ed1c556c3fea272839f25a1796ca249cd595c2b404d0c2bdab8002

See more details on using hashes here.

File details

Details for the file credit_deposit_calculator-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for credit_deposit_calculator-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 db7ace1ef004341faf830e6e2b0339859a33a4c77b330b33e45e8dedd8d96af8
MD5 53d363ff72581f5a668c4ea0aff536b4
BLAKE2b-256 96f58e774850948b00cd6463da39b7249c379f97eb9260c2d9026305593feebd

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