Questions tagged [finance]
Finance is for anything related to currency, payment systems, credit card number validation, etc.
265
questions
2
votes
2
answers
2k
views
Loan repayment calculator
I am having some trouble figuring out how to modularize this code without rewriting it entirely. I know I should be able to break it up into modules for main, gathering info, doing calculation and the ...
1
vote
1
answer
188
views
Simple calculation of sector coefficients using PHP
Function
This class extends the key class, called EQ, and does basic calculation based on minutely data. It then calculates weight coefficients (e.g., [0, 1]) for ...
3
votes
1
answer
95
views
Mortgage calculator with Swing for Helsinki MOOC
New to Java, just finished the Helsinki MOOC course. I programmed a basic mortgage calculator as my first solo project and while it works, I have a few questions about coding style:
The listener and ...
3
votes
1
answer
517
views
Tracking stock prices using Python and Google Sheets
The purpose of this program is to keep track of some stocks that we bought in a game and every week we must list the closing prices of each stock in a Google Sheet. I thought since I had a lot of ...
5
votes
2
answers
5k
views
OOP bank account program in Python 3
Python beginner here. Building an OOP bank account program with SQLite and starting to struggle a bit with its design. From a design standpoint I have a file (bank) which calls ATM. ATM simulates an ...
0
votes
2
answers
4k
views
Loan calculator in C
I wanted to create a loan calculator, but the code I could think of was using 3 functions, and calling them and getting result. But I felt it was easy but bad code because I thought this can be ...
0
votes
1
answer
876
views
Predicting credit card default
I have this code for predicting credit card default and it works perfectly, but I am checking here to see if anybody could make it more efficient or compact. It is pretty long though, but please bear ...
1
vote
1
answer
314
views
Python 'Cashflow' object
In the code shown below, I have created 3 classes. The first of these are an 'Payment' class and a 'Annuity' class, which allow the user to create objects representing individual or recurring payments ...
0
votes
2
answers
294
views
Python 'interest rate' object
I have only recently started learning python and the below is my attempt to create an 'interest rate' object which, given one of several types of interest/discount rate, gives the user access to all ...
1
vote
1
answer
275
views
Renting vs. owning comparison calculation
I have working code that compares rental prices and owning costs, given some parameters. It works, but it surely does not look good. I hadn't worked with time-series before and I wonder how I could ...
2
votes
2
answers
75
views
The importance of consistency in percentage returns when investing
It is said that
Being consistent in percentage annual returns leads to larger amount over time.
That is for any given principal, getting 20% successively for 2 years is better than 30% for first ...
-1
votes
1
answer
912
views
Compound interest calculator homework [closed]
I am a beginner at coding Java and am having a tough time understanding what is wrong with this code. This is an assignment I had posted about earlier and I also went to a Java tutor at my school for ...
7
votes
3
answers
1k
views
Reversible tax calculator class
I have a class that contains 2 properties of the same type. decimal NetAmount and decimal GrossAmount
I would like to ...
3
votes
2
answers
4k
views
JavaScript interest rate calculator
As I am still new to web development, refactoring my code is still something that gives me some trouble. I would really appreciate it if someone could look over the Javascript for an interest rate ...
2
votes
1
answer
1k
views
Profit Margin Calculator in Python (with installments)
I was sent here from StackOverflow to get some insight on how I can improve my code. I'm a beginner and the program is not streamlined at all.
What the program does:
Takes an input of the Retail ...