![]() you've entered "5" for the "Number of periods" field and this is a 5-year loan) then you should enter the effective annualized interest rate. Note that the input in the interest rate field in the calculator needs to be the effective interest rate based on the period for which you are performing the calculation. Similarly, enter "-20" if you are withdrawing money from an investment or deposit and enter "20" if you are depositing $20 to cover the interest or the principal of a loan/credit. Enter just "100" if you are taking a loan worth $100. For example, enter -100 if you are depositing or investing 100 USD. Consult the question marks next to each field's label if you are uncertain on how to proceed.Īs a general rule, enter values with a minus in front of them if they are cash outflows. After deciding what you want to solve for in the TVM equation, provide the remaining values and press "Calculate". Our online calculator makes it simple and easy to calculate various quantities related to the time value of money such as present value, future value, interest rate and repeating payment required to cover a loan or to increase a deposit's value to a certain amount. What can the TVM formula calculator solve for?.nvert_button = Button(self, text = "Convert", fg = "black", bg = "green", command = self.perform) Self.to_currency_dropdown = ttk.Combobox(self, textvariable=self.to_currency_variable,values=list(self.currency_()), font = font, state = 'readonly', width = 12, justify = tk.CENTER) om_currency_dropdown = ttk.Combobox(self, textvariable=om_currency_variable,values=list(self.currency_()), font = font, state = 'readonly', width = 12, justify = tk.CENTER) Self.option_add('*TCombobox*Listbox.font', font) Self.to_currency_t("USD") # default value Self.to_currency_variable = StringVar(self) nverted_amount_field_label = Label(self, text = '', fg = 'black', bg = 'white', relief = tk.RIDGE, justify = tk.CENTER, width = 17, borderwidth = 3) Self.amount_field = Entry(self,bd = 3, relief = tk.RIDGE, justify = tk.CENTER,validate='key', validatecommand=valid) Valid = (self.register(self.restrictNumberOnly), '%d', '%P') Self.date_label = Label(self, text = f" Date : ", relief = tk.GROOVE, borderwidth = 5) Self.intro_label = Label(self, text = 'IT SOURCECODE Real Time Currency Converter', fg = 'black',bg='blue', relief = tk.RAISED, borderwidth = 3) This module which is performing the currency conversion the you’ve select.Ĭomplete Source Code # Python Project on Currency Converter Return (string = "" or (unt('.') <= 1 and result is not None)) nverted_amount_field_nfig(text = str(converted_amount))ĭef restrictNumberOnly(self, action, string): To_curr = self.to_currency_variable.get()Ĭonverted_amount = self.currency_nvert(from_curr,to_curr,amount)Ĭonverted_amount = round(converted_amount, 2) The Code Given Below Is For Performing The Currency Conversion def perform(self):įrom_curr = om_currency_variable.get() This module which is the module for the real time currency converter class. # limiting the precision to 4 decimal placesĪmount = round(amount * self.currencies, 4) The Code Given Below Is For The Real time Currency Converter Class class RealTimeCurrenc圜onverter():ĭef convert(self, from_currency, to_currency, amount):Īmount = amount / self.currencies In this codes which is importing all the modules. The Code Given Below Is For Importing Modules. ![]() You are free to copy the code given below and download the full source code below. Third after creating a python file, Name your python file after that click “ enter“. ![]() Second after creating a project name, “ right click” your project name and then click “ new” after that click the “ python file“. ![]()
0 Comments
Leave a Reply. |