Hi I want to find the sell price required to sell a share based on the following variables:
X = sell price
B = buy price
I = investment in $
D = desired profit in $
S = number of shares
I am wanting to write a program to ask the following questions and return an answer like so:
1. What is the buy price?
2. How much do you want to invest?
3. What is the desired profit?
Ans: Your sell price is X
So as you can see, if there is more than one calculation required (which I suspect is the case), then that is fine. I have figured out how to do this as a percent of profit, but I want to keep it simple by stating desired profit in $ amt.
Thanks
X = sell price
B = buy price
I = investment in $
D = desired profit in $
S = number of shares
I am wanting to write a program to ask the following questions and return an answer like so:
1. What is the buy price?
2. How much do you want to invest?
3. What is the desired profit?
Ans: Your sell price is X
So as you can see, if there is more than one calculation required (which I suspect is the case), then that is fine. I have figured out how to do this as a percent of profit, but I want to keep it simple by stating desired profit in $ amt.
Thanks