How to figure out Purchase price + Rehabilitation cost for single family house

As per the course details

Purchase Price + Rehabilitation cost = 70% ARV, best BRRRR strategy,

How can I determine the best purchase price for a single-family home? How can I come to know what my Rehabilitation cost is for the property ( what needs to be replaced, who will provide the quote), so that I can ensure ARV is 25% to 30 %

Thanks

Ganesh Gatla