Welcome to our first March Monday of the year!
Today's problem is a fun one to dream about. The objective is to create a function that takes in an initial value and a percentage and return the amount of money you could make off interest compounded daily in the stock market. Since the market's days aren't fixed you can just calculate the number of weekdays in the current year (no need to worry about holidays). An example would be:
Rate of 1% Day 1: 10000 Day 2: 10100 Day 3: 10201
It's crazy how much money you could make at 1% compounded daily over the course of a year!
Comments:
Jt - 9 years, 9 months ago
Javascript
reply permalink