Cost and price formulas?

What are the formulas you guys are using to determine if properties in your area are actually profitable for what you’re trying to do with it? And what margins do you give yourself? In Washington here!