Cryptocurrency trading profit margin calculator

If I buy at $ and there is a % trading fee, I need to sell at $ to make a % profit.