My advice would be to talk to a good business advisor or business lawyer in your area. More than one if at all possible.
There isn't really a formula for it. There are - to varying degrees - tangible assets of course, such as a customer base, good turnover, stock or premises. Even an established web presence. Also less tangible assets such as company image/reputation/pedigree.