If you are bottling a fully carbonated beer from a keg the appropriate amount of corn sugar to add is zero. Just lower the pressure in the keg and use a long draft line to avoid foaming when you fill the bottles. It also helps to chill the bottles first. You will lose a bit of carbonation, but if you do it right it won't be a lot.