I am trying to calculate a formula to determine the retail price.

For example, I know that the cost of my item is $780.
I know that I want to make 22% profit on the item.
What is the formula then to get to a $1000 retail price?

I would like to be able to change the profit percentage and cost of the item and determine what retail should be.

Thanks.