From initial investments to royalty fees to legal costs, take stock of these numbers before it’s too late.