Skip to content

Instantly share code, notes, and snippets.

@husniadil
Created October 28, 2024 16:54
Show Gist options
  • Save husniadil/8afecd2950ff254675f26f5685c3aecf to your computer and use it in GitHub Desktop.
Save husniadil/8afecd2950ff254675f26f5685c3aecf to your computer and use it in GitHub Desktop.

BCA Time Deposit Calculator

This project provides a Python class for calculating returns on BCA time deposits.

Features

  • Calculates interest earned, tax, and total amount based on principal, period, and current interest rates.
  • Handles different interest rates for varying deposit amounts and periods.
  • Provides a function to determine the required principal to achieve a target interest after tax.
  • Formats numbers with thousand separators for better readability.

Example Result

  1. Calculate Time Deposit Output:
BCA Time Deposit Calculation Results:
--------------------------------------------
Principal Amount    : Rp.    100.000.000.000
Period              : 12 month(s) (365 days)
Interest Rate       :                   2,1%
Interest Earned     : Rp.      2.100.000.000
Tax                 : Rp.        420.000.000
--------------------------------------------
Total Amount        : Rp.    101.680.000.000
  1. Calculate Principal Output:
Principal required for target interest of Rp. 100.000.000 after tax in 1 month(s): Rp. 46.794.871.608

Source Code

https://colab.research.google.com/drive/12dPxbj4GMPP3uss_qo1hphWPaPpDhVHp#scrollTo=bCXyBPuC2_ZC

Credit

https://www.bca.co.id/id/Individu/produk/simpanan/Deposito-Berjangka

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment