If you're looking for investors or want to sell your business, you must determine its value. Follow these four steps to calculate it.