how to analyze a deal