Investors start with the after-repair value, often called ARV. That is what the house would likely sell for once it is fixed up, based on recent sales of similar houses nearby.
Next they estimate the repairs: roof, floors, kitchen, paint, whatever the house needs. These are estimates. A good investor will show you how they got them.
The investor also has costs of their own: loan interest or money tied up, taxes and insurance while they hold the house, closing costs, and the cost of selling it later. They need to leave room for those, and for a profit. That is why the offer is below retail.